|
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.DateFormat
This class formats a Date to a String following the conditions of its attributes.
Field Summary |
---|
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
DateFormat()
This constructor creates a DateFormat object. |
|
DateFormat(java.lang.String aName)
This constructor creates the DateFormat object with the id aName. |
Method Summary | |
---|---|
java.lang.String[] |
extract(java.lang.String aString)
Extracts a string the length of which is the length of the expected string. |
java.lang.String |
formatField(DataField aDataField)
Formats a Date using the java.text.SimpleDatFormat class initialized with the declared parameters. |
boolean |
getFourDigitYear()
Returns the value of fourDigitYear. |
int |
getOrdering()
Returns the value of ordering. |
java.lang.String |
getPattern()
Calculates the pattern that is used to initialize the SimpleDateFormat. |
java.lang.String |
getSeparator()
Returns the value of separator. |
boolean |
getUseSeparator()
Returns the value of useSeparator. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a DateFormat with the Tag attributes. |
void |
setFourDigitYear(boolean aBoolean)
Sets the value of fourDigitYear. |
void |
setOrdering(int anInt)
Sets the value of ordering. |
void |
setSeparator(java.lang.String aSeparator)
Sets the value of separator. |
void |
setUseSeparator(boolean aBoolean)
Sets the value of useSeparator. |
java.lang.String |
toString()
Returns an XML representation of this instance. |
DataField |
unformatField(java.lang.String aString,
DataField aDataField)
Unformats aString using the parse() method of java.text.SimpleDataFormat initialize using the parameters. |
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, 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 DateFormat()
public DateFormat(java.lang.String aName) throws java.io.IOException
aName
- java.lang.StringMethod Detail |
public java.lang.String[] extract(java.lang.String aString)
extract
in class FormatElement
aString
- String
public java.lang.String formatField(DataField aDataField) throws DSEInvalidClassException
formatField
in class FieldFormat
DSEInvalidClassException
public boolean getFourDigitYear()
public int getOrdering()
public java.lang.String getPattern()
public java.lang.String getSeparator()
public boolean getUseSeparator()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
initializeFrom
in interface Externalizable
initializeFrom
in class FormatElement
aTag
- com.ibm.btt.base.Tag
java.io.IOException
public void setFourDigitYear(boolean aBoolean)
aBoolean
- booleanpublic void setOrdering(int anInt)
anInt
- intpublic void setSeparator(java.lang.String aSeparator)
aSeparator
- java.lang.Stringpublic void setUseSeparator(boolean aBoolean)
aBoolean
- booleanpublic java.lang.String toString()
toString
in class FormatElement
public DataField unformatField(java.lang.String aString, DataField aDataField) throws DSEInvalidArgumentException
unformatField
in class FieldFormat
DSEInvalidArgumentException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |