com.ibm.dse.appl.ej.base
Class ConverterDefinition
java.lang.Object
|
+--com.ibm.dse.base.DataElement
|
+--com.ibm.dse.appl.ej.base.ConverterDefinition
- Direct Known Subclasses:
- DateConverterDefinition, FloatConverterDefinition, IntegerConverterDefinition
- public abstract class ConverterDefinition
- extends DataElement
ConverterDefintion is the abstract class for all elements that externally
define GUI converters components as DataElements. The value of these
definitions is an instance of the com.ibm.dse.gui.Converter class.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
getValue()
Returns the value of the value property. |
abstract java.lang.Object |
initializeFrom(Tag aTag)
Abstract method .Initializes a ConverterDefinition object with the aTag attributes. |
Vector |
nestedElements()
Returns an empty Vector because Converter definitions are simple fields that
contain no subelements. |
void |
nestedElements(java.util.Hashtable theTable)
As it isn't a collection t adds itself in the hashtable theTable. |
Vector |
nestedFields()
Because it is a simple DataElement it returns a Vector containing itself. |
void |
setValue(java.lang.Object newValue)
If newValue is an instance of Converter, sets the value of the value property. |
Methods inherited from class com.ibm.dse.base.DataElement |
clone,
externalizer,
getDescription,
getDescriptor,
getElementAt,
getErrorInfo,
getExternalizer,
getKey,
getName,
getState,
getTagName,
readExternal,
readExternal,
readObject,
removeElementAt,
removeExternal,
setDescription,
setDescriptor,
setErrorInfo,
setExternalizer,
setName,
setState,
toStrings,
toTags,
validate,
writeExternal,
writeExternal |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
value
protected Converter value
ConverterDefinition
public ConverterDefinition()
getValue
public java.lang.Object getValue()
- Returns the value of the value property. The value property corresponds
to the Converter instance defined in the SGML file.
- Overrides:
- getValue in class DataElement
- Returns:
- java.lang.Object - The current value of value.
initializeFrom
public abstract java.lang.Object initializeFrom(Tag aTag)
throws java.io.IOException
- Abstract method .Initializes a ConverterDefinition object with the aTag attributes.
- Parameters:
aTag
- com.ibm.dse.base.Tag Contains the name and attributes of the object to be created.- Returns:
- Object - An instance of ConverterDefinition.
- Throws:
- java.io.IOException - The object can not be created.
nestedElements
public Vector nestedElements()
- Returns an empty Vector because Converter definitions are simple fields that
contain no subelements.
- Overrides:
- nestedElements in class DataElement
- Returns:
- com.ibm.dse.base.Vector
nestedElements
public void nestedElements(java.util.Hashtable theTable)
- As it isn't a collection t adds itself in the hashtable theTable.
- Overrides:
- nestedElements in class DataElement
- Tags copied from class: DataElement
- Returns:
- java.util.Hashtable
nestedFields
public Vector nestedFields()
- Because it is a simple DataElement it returns a Vector containing itself.
- Overrides:
- nestedFields in class DataElement
- Returns:
- com.ibm.dse.base.Vector
setValue
public void setValue(java.lang.Object newValue)
throws DSEInvalidArgumentException
- If newValue is an instance of Converter, sets the value of the value property.
- Overrides:
- setValue in class DataElement
- Parameters:
newValue
- java.lang.Object The new value of the property.- Throws:
- DSEInvalidArgumentException - - The parameter is not a Hashtable Object.