| |
|
| java.lang.Object com.jcorporate.expresso.kernel.metadata.ComponentMetadata
ComponentMetadata | public class ComponentMetadata (Code) | | 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.
author: Michael Rimov version: $Revision: 1.5 $ on $Date: 2004/11/17 20:48:17 $ |
methods | Map methods(Code) | | Defined management methods of the Component
|
nested | List nested(Code) | | Nested Component Metadata
|
properties | Map properties(Code) | | Current properties of the ComponentMetadata
|
ComponentMetadata | public ComponentMetadata()(Code) | | Default constructor
|
addChildComponent | public void addChildComponent(ComponentMetadata newComponent)(Code) | | Add a new ComponentMetadata object as a child of this component
Parameters: newComponent - an instantiated ComponentMetadata |
addMethod | public void addMethod(Method newValue)(Code) | | Add a new Method metadata object
Parameters: newValue - the new Method metadata object |
addProperty | public void addProperty(Property newValue)(Code) | | Add a new Property to this component's metadata
Parameters: newValue - the new property value |
getChildren | public List getChildren()(Code) | | Retrieve a list of children
UnModifiable List |
getDescription | public String getDescription()(Code) | | Retrieve the friendly name of the component
java.lang.String |
getMessageBundle | public String getMessageBundle()(Code) | | Retrieve the 'relative resource path' to the MessageBundle
java.lang.String |
getMethod | public Method getMethod(String methodName)(Code) | | Retrieve the metadata
Parameters: methodName - name of the method to retrieve The Method or null if it doesn't exist |
getMethods | public Map getMethods()(Code) | | Retrieve all registered methods
an Unmodifiable Map |
getName | public String getName()(Code) | | Retrieve the name of the component
java.lang.String |
getProperties | public Map getProperties()(Code) | | Retrieve the properties for the component
an Unmodifiable Map of Property classes |
getSchemaData | public SchemaData getSchemaData()(Code) | | Retrieve the SchemaData bean from the metadata object
SchemaData for this metadata |
getVersionNumber | public String getVersionNumber()(Code) | | Retrieve the version number as a String
java.lang.String |
setDescription | public void setDescription(String description)(Code) | | Set the description of the component metadata
Parameters: description - The new 'friendly name' of the component |
setMessageBundle | public void setMessageBundle(String messageBundle)(Code) | | Sets the method metadata available.
Example Usage:
metadata.setMessageBundle("/com/jcorporate/expresso/core/MessagesBundle");
Parameters: messageBundle - 'resource' path to the MessageBundle. |
setName | public void setName(String name)(Code) | | Set the name of the compoent
Parameters: name - New name for the component |
setSchemaData | public void setSchemaData(SchemaData newData)(Code) | | Sets the Schema data for the component.
Parameters: newData - the new SchemaData object |
setVersionNumber | public void setVersionNumber(String versionNumber)(Code) | | Set the version number as a string
Parameters: versionNumber - new version number in the format major.minor.micro |
setVersionNumber | public void setVersionNumber(String major, String minor, String micro)(Code) | | Set the version number as a batch of strings
Parameters: major - the major version number Parameters: minor - the minor version number Parameters: micro - the micro version number |
|
|
|