|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents an object that can have it's metadata described by an XML file. The Describable interface returns the URL that contains the xml file that is the metadata for the component. This could event potentially be located in a central server for metadata distribution.
Note that the default component implementations (NonContainercomponentBase
and ContainerComponentBase) implement Describable in
such a way that it looks for an xml file by the name of: [className].xml
in the same package as the Component class itself is located
The minimal xml file to be associated with the Expresso component is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE component-metadata PUBLIC "-//Jcorporate Ltd//
DTD Expresso Component Metadata Configuration 5.1//EN" "http://www.jcorporate.com/dtds/expresso-metadata_5_1.dtd">
<component-metadata name="ExpressoServiceWriter">
<description>Sample Component Description</description>
<version-info>
<major-version>1</major-version>
<minor-version>0</minor-version>
<micro-version>0</micro-version>
</version-info>
</component-metadata>
| Method Summary | |
URL |
getMetadataLocation()
Get the location of the metadata. |
void |
setMetaData(ComponentMetadata metadata)
Sets the component metadata for component. |
| Method Detail |
public URL getMetadataLocation()
this.getClass().loadResource("metadataname"); call.
NonContainerComponentBase implements a default method.
public void setMetaData(ComponentMetadata metadata)
metadata - the component metadata
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||