java.lang.String |
formatField(DataField aDataField)
Methods inherited from class com.ibm.btt.base.FormatElement |
checkIndexes, exceptionInfo, externalizer, extract, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isConstant, isItConstant, isNull, 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 |
formatAs
public int formatAs
- The property decides the case of the alphabetic characters after
formatting.
unformatAs
public int unformatAs
- The property decides the case of the alphabetic characters after
unformatting.
StringFormat
public StringFormat()
- This is the default constructor used to create a StringFormat object.
StringFormat
public StringFormat(java.lang.String aName)
throws java.io.IOException
- This is the constructor used by the externalizer to create a StringFormat
object.
- Parameters:
aName - java.lang.String
- Throws:
java.io.IOException
formatField
public java.lang.String formatField(DataField aDataField)
throws DSEInvalidClassException
- Converts the string value of aDataField to lowercase or uppercase as
determined by the value of the formatAs attribute.
- Specified by:
formatField in class FieldFormat
- Parameters:
aDataField - DataField
- Returns:
- java.lang.String
- Throws:
DSEInvalidClassException
getFormatAs
public int getFormatAs()
- Gets the formatAs property (an int) value.
- Returns:
- The formatAs property value.
- See Also:
setFormatAs(int)
getUnformatAs
public int getUnformatAs()
- Gets the unformatAs property (an int) value.
- Returns:
- The unformatAs property value.
- See Also:
setUnformatAs(int)
initializeFrom
public java.lang.Object initializeFrom(Tag aTag)
throws java.io.IOException
- Initializes a StringFormat with the aTag attributes.
- Specified by:
initializeFrom in class FormatElement
- Parameters:
aTag - com.ibm.btt.base.Tag
- Throws:
java.io.IOException
setFormatAs
public void setFormatAs(int type)
- Sets the value of formatAs based on the value of the type
parameter:
- 1 - lowercase
- 2 - uppercasse
- other - no changes
.
- Parameters:
type - int
setUnformatAs
public void setUnformatAs(int type)
- Sets the value of unformatAs based on the value of the type
parameter:
- 1 - lowercase
- 2 - uppercasse
- other - no changes
.
- Parameters:
type - int
toString
public java.lang.String toString()
- Returns a visual representation of this format.
- Overrides:
toString in class FormatElement
- Returns:
- com.ibm.btt.base.Vector
unformatField
public DataField unformatField(java.lang.String aString,
DataField aDataField)
- Unformats aString and updates the value of aDataField.
The unformat converts the String to lowercase or uppercase as determined
by the value of the unformatAs attribute.
- Specified by:
unformatField in class FieldFormat
- Parameters:
aString - java.lang.StringaDataField - DataField
- Returns:
- DataField
(c) Copyright IBM Corporation 1998, 2009
|