|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.FormatElement | +--com.ibm.dse.base.ConstantFormat
This class returns a constant value when it is formatted, and extracts the same constant value when it is unformatted.
Fields inherited from class com.ibm.dse.base.FormatElement |
dataElementName,
name |
Constructor Summary | |
ConstantFormat()
This constructor creates a ConstantFormat object. |
|
ConstantFormat(java.lang.String aName)
This constructor creates a new instance of the ConstantFormat class, which is obtained from the external definition files through aName. |
Method Summary | |
java.lang.String[] |
extract(java.lang.String aString)
Extracts the length that is equal to the constantValue length. |
java.lang.String |
format(DataElement aDataElement)
Returns the constantValue. |
java.lang.String |
getConstantValue()
Gets the constantValue property (java.lang.String) value. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a ConstantFormat with the aTag attributes. |
java.lang.Boolean |
isConstant()
Returns true. |
void |
setConstantValue(java.lang.String aConstantValue)
Sets the constantValue property (java.lang.String) value. |
java.lang.String |
toString()
Returns a visual representation of the instance. |
DataElement |
unformat(java.lang.String aString,
DataElement aDataElement)
Verifies that the String is equal to the constantValue and, if it is not, it throws an Exception. |
Methods inherited from class com.ibm.dse.base.FormatElement |
exceptionInfo,
externalizer,
format,
format,
getDataElementName,
getExternalizer,
getName,
getTagName,
isCacheable,
readExternal,
readExternal,
readObject,
reinitialize,
removeExternal,
rootDecorated,
setDataElementName,
setExternalizer,
setName,
setSize,
toStrings,
toTags,
unformat,
unformat,
writeExternal,
writeExternal |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ConstantFormat()
public ConstantFormat(java.lang.String aName) throws java.io.IOException
aName
- java.lang.StringMethod Detail |
public java.lang.String[] extract(java.lang.String aString)
String
- aStringpublic java.lang.String format(DataElement aDataElement)
aDataElement
- DataElementpublic java.lang.String getConstantValue()
setConstantValue(java.lang.String)
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tagpublic java.lang.Boolean isConstant()
public void setConstantValue(java.lang.String aConstantValue)
constantValue
- The new value for the property.getConstantValue()
public java.lang.String toString()
public DataElement unformat(java.lang.String aString, DataElement aDataElement) throws DSEInvalidArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |