|
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.metadata.ComponentMetadata
Bean class that stores the component metadata. Although this class is normally populated by the contents of an XML file, it can be manually populated if the developer so wishes.
| Constructor Summary | |
ComponentMetadata()
Default constructor |
|
| Method Summary | |
void |
addChildComponent(ComponentMetadata newComponent)
Add a new ComponentMetadata object as a child of this component |
void |
addMethod(Method newValue)
Add a new Method metadata object |
void |
addProperty(Property newValue)
Add a new Property to this component's metadata |
List |
getChildren()
Retrieve a list of children |
String |
getDescription()
Retrieve the friendly name of the component |
String |
getMessageBundle()
Retrieve the 'relative resource path' to the MessageBundle |
Method |
getMethod(String methodName)
Retrieve the metadata |
Map |
getMethods()
Retrieve all registered methods |
String |
getName()
Retrieve the name of the component |
Map |
getProperties()
Retrieve the properties for the component |
SchemaData |
getSchemaData()
Retrieve the SchemaData bean from the metadata object |
String |
getVersionNumber()
Retrieve the version number as a String |
void |
setDescription(String description)
Set the description of the component metadata |
void |
setMessageBundle(String messageBundle)
Sets the method metadata available. |
void |
setName(String name)
Set the name of the compoent |
void |
setSchemaData(SchemaData newData)
Sets the Schema data for the component. |
void |
setVersionNumber(String versionNumber)
Set the version number as a string |
void |
setVersionNumber(String major,
String minor,
String micro)
Set the version number as a batch of strings |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComponentMetadata()
| Method Detail |
public String getName()
public void setName(String name)
name - New name for the componentpublic void setVersionNumber(String versionNumber)
versionNumber - new version number in the format major.minor.micropublic String getVersionNumber()
public void setVersionNumber(String major,
String minor,
String micro)
major - the major version numberminor - the minor version numbermicro - the micro version numberpublic void addChildComponent(ComponentMetadata newComponent)
newComponent - an instantiated ComponentMetadatapublic List getChildren()
public void setDescription(String description)
description - The new 'friendly name' of the componentpublic String getDescription()
public void addProperty(Property newValue)
newValue - the new property valuepublic void addMethod(Method newValue)
newValue - the new Method metadata objectpublic Method getMethod(String methodName)
methodName - name of the method to retrieve
public Map getMethods()
public Map getProperties()
public void setMessageBundle(String messageBundle)
Sets the method metadata available.
Example Usage:
metadata.setMessageBundle("/com/jcorporate/expresso/core/MessagesBundle");
messageBundle - 'resource' path to the MessageBundle.public String getMessageBundle()
public void setSchemaData(SchemaData newData)
newData - the new SchemaData objectpublic SchemaData getSchemaData()
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||