|
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.dse.base.FormatElement
com.ibm.dse.base.FieldFormat
com.ibm.dse.base.StringFormat
This class formats a String. This class can convert the String to uppercase or lowercase.
Field Summary | |
---|---|
int |
formatAs
|
int |
unformatAs
|
Fields inherited from class com.ibm.dse.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
StringFormat()
This is the default constructor used to create a StringFormat object. |
|
StringFormat(java.lang.String aName)
This is the constructor used by the externalizer to create a StringFormat object. |
Method Summary | |
---|---|
java.lang.String |
formatField(DataField aDataField)
Converts the string value of aDataField to lowercase or uppercase as determined by the value of the formatAs attribute. |
int |
getFormatAs()
Gets the formatAs property (an int) value. |
int |
getUnformatAs()
Gets the unformatAs property (an int) value. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a StringFormat with the aTag attributes. |
void |
setFormatAs(int type)
Sets the value of formatAs based on the value of the type parameter: 1 - lowercase 2 - uppercasse other - no changes . |
void |
setUnformatAs(int type)
Sets the value of unformatAs based on the value of the type parameter: 1 - lowercase 2 - uppercasse other - no changes . |
java.lang.String |
toString()
Returns a visual representation of this format. |
DataField |
unformatField(java.lang.String aString,
DataField aDataField)
Unformats aString and updates the value of aDataField. |
Methods inherited from class com.ibm.dse.base.FieldFormat |
---|
format, format, toStrings, unformat, unformat |
Methods inherited from class com.ibm.dse.base.FormatElement |
---|
exceptionInfo, externalizer, extract, format, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isConstant, isItConstant, readExternal, readExternal, readObject, reinitialize, removeExternal, rootDecorated, setDataElementName, setExternalizer, setName, setSize, toTags, unformat, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int formatAs
public int unformatAs
Constructor Detail |
public StringFormat()
public StringFormat(java.lang.String aName) throws java.io.IOException
Method Detail |
public java.lang.String formatField(DataField aDataField) throws DSEInvalidClassException
formatField
in class FieldFormat
aDataField
- DataField
DSEInvalidClassException
public int getFormatAs()
setFormatAs(int)
public int getUnformatAs()
setUnformatAs(int)
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
initializeFrom
in interface Externalizable
initializeFrom
in class FormatElement
aTag
- com.ibm.dse.base.Tag
java.io.IOException
public void setFormatAs(int type)
type
- intpublic void setUnformatAs(int type)
type
- intpublic java.lang.String toString()
toString
in class FormatElement
public DataField unformatField(java.lang.String aString, DataField aDataField)
unformatField
in class FieldFormat
aString
- java.lang.StringaDataField
- DataField
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |