|
IBM WebSphere Multichannel Bank 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.FormatDecorator
com.ibm.btt.base.Delimiter
@ATTR(value="delimChar#String#IMPLIED") public class Delimiter
The Delimiter class adds an delimiter character to its decorated String in order to provide a mechanism to separate the different data formats.
Field Summary | |
---|---|
char |
delimiterChar
This character is used as as the delimiter. |
Fields inherited from class com.ibm.btt.base.FormatDecorator |
---|
decorated |
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
Delimiter()
This constructor creates a Delimiter object. |
|
Delimiter(java.lang.String aName)
This constructor creates the Delimiter object with the id aName |
Method Summary | |
---|---|
java.lang.String |
addDecoration(java.lang.String aString)
Appends the delimiter character to the end of the string. |
java.lang.String[] |
extract(java.lang.String aString)
Extracts the string up to the first occurrence of the delimiter. |
char |
getDelimiterChar()
Returns the value of the delimiterChar. |
protected int |
getNdxTo(int ndxFrom,
int ndxTo,
java.lang.String str)
Returns first position that delimiter in the string that between ndxFrom and ndxTo |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a Delimiter with the Tag attributes. |
java.lang.String |
removeDecoration(java.lang.String aString)
Remove the delimiter character from the end of the string. |
void |
setDelimiterChar(char aChar)
Sets the value of the delimiterChar. |
Vector |
toStrings()
Returns a visual representation of this decorator. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String aString,
Context ctx)
Unformat strings that between ndxFrom and ndxTo into the Context. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String aString,
DataElement aDataElement)
Unformat strings that between ndxFrom and ndxTo into the DataElement. |
Methods inherited from class com.ibm.btt.base.FormatDecorator |
---|
format, format, getDataElementName, getDecorated, getName, isConstant, isItConstant, reinitialize, rootDecorated, rootDecorator, setDecorated, toString, unformat, unformat |
Methods inherited from class com.ibm.btt.base.FormatElement |
---|
checkIndexes, exceptionInfo, externalizer, getExternalizer, getTagName, isCacheable, isNull, readExternal, readExternal, readObject, removeExternal, setDataElementName, setExternalizer, setName, setSize, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public char delimiterChar
Constructor Detail |
---|
public Delimiter()
public Delimiter(java.lang.String aName) throws java.io.IOException
aName
- java.lang.String
java.io.IOException
Method Detail |
---|
public java.lang.String addDecoration(java.lang.String aString)
addDecoration
in class FormatDecorator
public java.lang.String[] extract(java.lang.String aString) throws DSEInvalidArgumentException
extract
in class FormatDecorator
aString
- String
DSEInvalidArgumentException
public char getDelimiterChar()
public java.lang.Object initializeFrom(Tag aTag)
initializeFrom
in class FormatElement
aTag
- com.ibm.btt.base.Tag
public java.lang.String removeDecoration(java.lang.String aString) throws DSEInvalidArgumentException
removeDecoration
in class FormatDecorator
aString
- String
DSEInvalidArgumentException
public void setDelimiterChar(char aChar)
aChar
- charpublic Vector toStrings()
toStrings
in class FormatDecorator
public int unformat(int ndxFrom, int ndxTo, java.lang.String aString, DataElement aDataElement) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class FormatElement
str
- java.lang.StringndxFrom
- intndxTo
- intde
- com.ibm.btt.base.DataElement;
DSEInvalidRequestException
DSEInvalidArgumentException
public int unformat(int ndxFrom, int ndxTo, java.lang.String aString, Context ctx) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class FormatElement
str
- java.lang.StringndxFrom
- intndxTo
- intctx
- com.ibm.btt.base.Context;
DSEInvalidRequestException
DSEInvalidArgumentException
protected int getNdxTo(int ndxFrom, int ndxTo, java.lang.String str) throws DSEInvalidArgumentException
str
- java.lang.StringndxFrom
- intndxTo
- int
DSEInvalidArgumentException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |