java.lang.String |
format(DataElement aDataElement)
Methods inherited from class com.ibm.btt.base.FormatElement |
checkIndexes, exceptionInfo, externalizer, extract, format, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isConstant, isItConstant, isNull, readExternal, readExternal, readObject, reinitialize, removeExternal, rootDecorated, setDataElementName, setExternalizer, setName, setSize, toTags, unformat, unformat, unformat, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
conversionType
java.lang.String conversionType
TypedDataElementFormat
public TypedDataElementFormat()
format
public java.lang.String format(DataElement aDataElement)
throws DSEInvalidArgumentException
- Formats a typed DataElement using its descriptor.
- Specified by:
format in class FormatElement
- Parameters:
aDataElement - DataElement
- Returns:
- String
- Throws:
DSEInvalidArgumentException - - If the dataElement is not typed or if its converter has not been able to format the data
getConversionType
public java.lang.String getConversionType()
- Gets the convertionType attribute.
- Returns:
- java.lang.String
initializeFrom
public java.lang.Object initializeFrom(Tag aTag)
throws java.io.IOException
- Initializes a TypedDataElementFormat with the Tag attributes.
- Specified by:
initializeFrom in class FormatElement
- Parameters:
aTag - com.ibm.btt.base.Tag
- Returns:
- java.lang.Object
- Throws:
java.io.IOException - - If an I/O Exception has occurred
setConversionType
public void setConversionType(java.lang.String aConversionType)
- Sets the conversionType attribute.
- Parameters:
aConversionType - java.lang.String
toString
public java.lang.String toString()
- Returns a visual representation of this format.
- Overrides:
toString in class FormatElement
- Returns:
- java.lang.String
toStrings
public Vector toStrings()
- Returns a visual representation of this format element.
- Overrides:
toStrings in class FormatElement
- Returns:
- com.ibm.btt.base.Vector
unformat
public DataElement unformat(java.lang.String aString,
DataElement aDataElement)
throws DSEInvalidArgumentException
- Unformats a typed DataElement using its descriptor.
- Specified by:
unformat in class FormatElement
- Parameters:
aString - java.lang.StringaDataElement - com.ibm.btt.base.DataElement
- Returns:
- com.ibm.btt.base.DataElement
- Throws:
DSEInvalidArgumentException - - If the dataElement is not typed or if its converter has not been able to unformat the data
(c) Copyright IBM Corporation 1998, 2009
|