|
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.btt.base.FormatElement
com.ibm.btt.base.FieldFormat
com.ibm.btt.base.PackedFormat
com.ibm.btt.base.PackedDateFormat
This class formats a Date as a String representing the packed value of the Date. The String represents the Date as a Number of the type ddMMyy.
Field Summary |
---|
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
PackedDateFormat()
This is the default constructor used to create a PackedDateFormat object. |
|
PackedDateFormat(java.lang.String aName)
This is the constructor used by the externalizer to create a PackedDateFormat object. |
Method Summary | |
---|---|
java.lang.String |
format(java.util.Date date)
Converts a Date to a number with digits ddMMyy and formats it as a packed Integer. |
java.lang.String |
formatField(DataField aDataField)
Accesses the value of the aDataField, checks it, and returns it as an unsigned packed String. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a PackedFormat with the aTag attributes. |
java.util.Date |
parse(java.lang.String aString)
Unformats the packed Integer as a Date. |
java.lang.String |
toString()
Returns a visual representation of the format. |
DataField |
unformatField(java.lang.String aString,
DataField aDataField)
Updates the value of the DataField by interpreting aString as an unsigned packed decimal representing a Date with form ddMMyy. |
Methods inherited from class com.ibm.btt.base.PackedFormat |
---|
basicFormat, basicParse, format, format, getDecimalPlaces, getSigned, isSigned, parseToDouble, parseToLong, setDecimalPlaces, setSigned |
Methods inherited from class com.ibm.btt.base.FieldFormat |
---|
format, format, toStrings, unformat, unformat |
Methods inherited from class com.ibm.btt.base.FormatElement |
---|
exceptionInfo, externalizer, extract, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isConstant, isItConstant, readExternal, readExternal, readObject, reinitialize, removeExternal, rootDecorated, setDataElementName, setExternalizer, setName, setSize, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PackedDateFormat()
public PackedDateFormat(java.lang.String aName) throws java.io.IOException
aName
- java.lang.StringMethod Detail |
public java.lang.String format(java.util.Date date) throws DSEInvalidArgumentException
date
- java.util.Date
DSEInvalidArgumentException
public java.lang.String formatField(DataField aDataField) throws DSEInvalidClassException, DSEInvalidArgumentException
formatField
in class PackedFormat
aDataField
- DataField
DSEInvalidClassException
DSEInvalidArgumentException
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
initializeFrom
in interface Externalizable
initializeFrom
in class PackedFormat
aTag
- com.ibm.btt.base.Tag
java.io.IOException
public java.util.Date parse(java.lang.String aString) throws DSEInvalidArgumentException
aString
- java.lang.String
DSEInvalidArgumentException
public java.lang.String toString()
toString
in class PackedFormat
public DataField unformatField(java.lang.String aString, DataField aDataField) throws DSEInvalidArgumentException
unformatField
in class PackedFormat
aString
- StringaDataField
- DataField
DSEInvalidArgumentException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |