Expresso 5-5-0

com.jcorporate.expresso.kernel.digester
Class ComponentMetadataConfig

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.digester.ComponentMetadataConfig
All Implemented Interfaces:
Serializable

public class ComponentMetadataConfig
extends Object
implements Serializable

This class provides a digester interface to the ComponentMetadata information

Since:
Expresso 5.1
Version:
$Revision: 1.11 $ on $Date: 2003/10/27 19:10:39 $
Author:
Michael Rimov
See Also:
Serialized Form

Constructor Summary
ComponentMetadataConfig()
          Default constructor
 
Method Summary
 ComponentMetadata getMetadata()
          Retrieve the componentMetadata that has been built via a call to loadComponentMetadata
 void loadComponentMetadata(String resourceLocation)
          Load component metadata information given a String location.
 void loadComponentMetadata(URL resourceLocation)
          Loads the component metadata given a URL rather than a String location
protected  void setDigesterRules(org.apache.commons.digester.Digester digester)
          Set the rules for the digester TOTAL HACK WARNING!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentMetadataConfig

public ComponentMetadataConfig()
Default constructor

Method Detail

loadComponentMetadata

public void loadComponentMetadata(String resourceLocation)

Load component metadata information given a String location.

Code example

ComponentMetadataConfig cf = new ComponentMetadataConfig()
cf.loadComponentMetadata("/com/jcorporate/expresso/core/SchemaMetadata.xml"

The above example would load the component metadata from the com.jcorporate.expresso.core package.

Parameters:
resourceLocation - the location of the xml file to parse

loadComponentMetadata

public void loadComponentMetadata(URL resourceLocation)
Loads the component metadata given a URL rather than a String location

Parameters:
resourceLocation - the URL pointing to the location of the resource to parse.

setDigesterRules

protected void setDigesterRules(org.apache.commons.digester.Digester digester)

Set the rules for the digester

TOTAL HACK WARNING! Since Digester doesn't seem to allow recursive rules, we dynamically write rules for up to a maximum component depth of 20.

Parameters:
digester - the Apache Digester to manipulate

getMetadata

public ComponentMetadata getMetadata()
Retrieve the componentMetadata that has been built via a call to loadComponentMetadata

Returns:
ComponentMetadata

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.