|
|||||||||
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.FieldFormat | +--com.ibm.dse.base.IntegerFormat | +--com.ibm.dse.base.BinaryIntegerStringFormat
This class formats a numeric String as a byte representation of the Integer represented by this numeric String.
Fields inherited from class com.ibm.dse.base.FormatElement |
dataElementName,
name |
Constructor Summary | |
BinaryIntegerStringFormat()
This constructor creates a BinaryIntegerStringFormat object. |
|
BinaryIntegerStringFormat(java.lang.String aName)
This constructor creates a new instance of the BinaryIntegerStringFormat class, which is obtained from the external definition files through aName. |
Method Summary | |
java.lang.String |
format(java.lang.String aString)
Converts the String to a long format and calls the super long format. |
java.lang.String |
formatField(DataField aDataField)
Provides access to the value of the DataField, converts it from a String to an Integer, and checks that it is in a valid long format. |
char |
getPadChar()
Returns the value of padChar. |
int |
getUnformatStringSize()
Returns the unformatStringSize. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a BinaryIntegerStringFormat with the attributes in aTag" |
java.lang.String |
parseToString(java.lang.String aString)
Interprets the input string, obtains the long value from the aString through the parent class, and converts the long value to a numeric string. |
void |
setPadChar(char aPadChar)
Sets the value of padChar. |
void |
setUnformatStringSize(int aSize)
Sets the value of unformatStringSize. |
java.lang.String |
toString()
Converts the IntegerFormat to a String. |
DataField |
unformatField(java.lang.String aString,
DataField aDataField)
Updates the DataField value by interpreting the input string. |
Methods inherited from class com.ibm.dse.base.IntegerFormat |
extract,
format,
getByteOrdering,
getSign,
getSize,
parse,
setByteOrdering,
setSign,
setSize |
Methods inherited from class com.ibm.dse.base.FieldFormat |
format,
format,
unformat,
unformat |
Methods inherited from class com.ibm.dse.base.FormatElement |
exceptionInfo,
externalizer,
format,
getDataElementName,
getExternalizer,
getName,
getTagName,
isCacheable,
isConstant,
readExternal,
readExternal,
readObject,
reinitialize,
removeExternal,
rootDecorated,
setDataElementName,
setExternalizer,
setName,
toStrings,
toTags,
unformat,
writeExternal,
writeExternal |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BinaryIntegerStringFormat()
public BinaryIntegerStringFormat(java.lang.String aName) throws java.io.IOException
name
- java.lang.StringMethod Detail |
public java.lang.String format(java.lang.String aString) throws DSEInvalidArgumentException
aString
- java.lang.Stringpublic java.lang.String formatField(DataField aDataField) throws DSEInvalidArgumentException
aDataField
- DataFieldpublic char getPadChar()
public int getUnformatStringSize()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tagpublic java.lang.String parseToString(java.lang.String aString) throws DSEInvalidArgumentException
aString
- java.lang.Stringpublic void setPadChar(char aPadChar)
aPadChar
- charpublic void setUnformatStringSize(int aSize)
aSize
- intpublic java.lang.String toString()
public DataField unformatField(java.lang.String aString, DataField aDataField) throws DSEInvalidArgumentException
aString
- StringaDataField
- DataField
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |