|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.base.ObjectFormat
This class should be used only as elements in a HashtableFormat instance. It simply returns the value of the data element as an Object.
Field Summary | |
---|---|
java.lang.String |
dataElementName
Keeps the name of the data element the formatter is managing. |
java.lang.String |
key
|
Constructor Summary | |
---|---|
ObjectFormat()
|
Method Summary | |
---|---|
Externalizer |
externalizer()
Returns the Externalizer assigned to the FormatElement class. |
java.lang.Object |
format(DataElement aDataElement)
Formats aDataElement and returns it as an Object. |
java.lang.String |
getDataElementName()
Returns the value of dataElementName attribute. |
static Externalizer |
getExternalizer()
Returns the Externalizer assigned to the FormatElement class. |
java.lang.String |
getKey()
Returns the value of key attribute. |
java.lang.String |
getName()
Returns the name of the class. |
java.lang.String |
getTagName()
Returns the tag associated with the name of the class. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes an ObjectFormat with the Tag attributes. |
void |
readExternal()
This method will find the tag that corresponds to the name of THIS entity. |
void |
readExternal(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
void |
removeExternal()
Removes the object's tags from the XML file in which it is externalized. |
void |
setDataElementName(java.lang.String aName)
Sets the value of dataElementName attribute. |
void |
setKey(java.lang.String newKey)
Sets the value of key attribute. |
void |
setName(java.lang.String aName)
Sets the name of the ObjectFormat instance to aName. |
java.lang.String |
toString()
Returns an XML representation of the format element. |
Vector |
toStrings()
Returns a Vector containing XML representations of the format elements. |
Vector |
toTags()
Returns a Vector with the ObjectFormat instance represented as a Tag. |
DataElement |
unformat(java.lang.Object aValue,
DataElement aDataElement)
Sets the value of aDataElement with aValue. |
void |
writeExternal()
Writes the ObjectFormat instance converted to tags to its XML file. |
void |
writeExternal(java.io.ObjectOutput s)
Provides concrete serialization handling for ObjectFormat. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String dataElementName
public java.lang.String key
Constructor Detail |
public ObjectFormat()
Method Detail |
public Externalizer externalizer() throws java.io.IOException
externalizer
in interface Externalizable
java.io.IOException
public java.lang.Object format(DataElement aDataElement)
aDataElement
- com.ibm.dse.base.DataElement - The data element within the operation context to be formatted
public java.lang.String getDataElementName()
public static Externalizer getExternalizer()
public java.lang.String getKey()
public java.lang.String getName()
getName
in interface Externalizable
public java.lang.String getTagName()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException, DSEException
initializeFrom
in interface Externalizable
aTag
- com.ibm.dse.base.Tag
java.io.IOException
DSEException
public void readExternal() throws java.io.IOException
readExternal
in interface Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
s
- java.io.ObjectInput
java.io.IOException
java.lang.ClassNotFoundException
public void removeExternal() throws java.io.IOException
removeExternal
in interface Externalizable
java.io.IOException
public void setDataElementName(java.lang.String aName)
aName
- java.lang.Stringpublic void setKey(java.lang.String newKey)
newKey
- java.lang.Stringpublic void setName(java.lang.String aName)
setName
in interface Externalizable
aName
- java.lang.Stringpublic java.lang.String toString()
public Vector toStrings()
toStrings
in interface Externalizable
public Vector toTags() throws java.io.IOException
toTags
in interface Externalizable
java.io.IOException
public DataElement unformat(java.lang.Object aValue, DataElement aDataElement) throws DSEInvalidArgumentException
aValue
- java.lang.ObjectaDataElement
- com.ibm.dse.base.DataElement
DSEInvalidArgumentException
public void writeExternal() throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException
public void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
s
- java.io.ObjectOutput
java.io.IOException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |