|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.kernel.digester.ComponentMetadataConfig
This class provides a digester interface to the ComponentMetadata information
| 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 |
public ComponentMetadataConfig()
| Method Detail |
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"
resourceLocation - the location of the xml file to parsepublic void loadComponentMetadata(URL resourceLocation)
resourceLocation - the URL pointing to the location of the resource
to parse.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.
digester - the Apache Digester to manipulatepublic ComponentMetadata getMetadata()
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||