public abstract class AbstractComponent
extends java.lang.Object
ComponentXMLData
class.
Furthermore, a map of properties are also always passed to each component.Constructor and Description |
---|
AbstractComponent() |
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable<java.lang.String,XMLFieldEntry> |
getProperties()
Returns the properties of this component loaded from the component source XML file.
|
java.lang.String |
getPropertyValue(java.lang.String key)
Returns the value assigned to the given property key.
|
XMLFieldType |
getTypeOfProperty(java.lang.String key)
Returns the type of the given property key.
|
ComponentXMLData |
getXMLData()
Returns the ComponentXMLdata object that was used to create this component instance.
|
void |
setProperties(java.util.Hashtable<java.lang.String,XMLFieldEntry> properties)
Sets the properties of this component to the given value.
|
void |
setXMLData(ComponentXMLData data)
Sets the source ComponentXMLdata object to the given value.
|
public final ComponentXMLData getXMLData()
public final void setXMLData(ComponentXMLData data)
data
- The new ComponentXMLdata to be used.public final void setProperties(java.util.Hashtable<java.lang.String,XMLFieldEntry> properties)
properties
- The new map of property keys and values.public final java.util.Hashtable<java.lang.String,XMLFieldEntry> getProperties()
public final XMLFieldType getTypeOfProperty(java.lang.String key)
key
- The key whose assigned type is requested.java.lang.IllegalArgumentException
- if the given key is not found in the property map.public final java.lang.String getPropertyValue(java.lang.String key) throws java.lang.IllegalArgumentException
key
- The key whose assigned value is requested.java.lang.IllegalArgumentException
- if the given key is not found in the property map.