|
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.Identifier
@ATTR(value="idChar#String#IMPLIED") public class Identifier
This decorator prepends a character to the string that identifies the data in the receiver.
Field Summary | |
---|---|
char |
id
The character used as the identifier. |
static java.lang.String |
idSet
The string contains characters used as the identifier. |
Fields inherited from class com.ibm.btt.base.FormatDecorator |
---|
decorated |
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name, xmlSupport |
Constructor Summary | |
---|---|
Identifier()
This is the default constructor used to create an Identifier object. |
|
Identifier(java.lang.String aName)
This is the constructor used by the Externalizer to create an Identifier object. |
Method Summary | |
---|---|
java.lang.String |
addDecoration(java.lang.String aString)
Prepends the ID character to the String. |
java.lang.String[] |
extract(java.lang.String aString)
Extracts the String up to the next occurrence of any identifier included in the idSet attribute. |
char |
getId()
Returns the value of id. |
static java.lang.String |
getIdSet()
Returns the value of the idSet attribute. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes an Identifier with the aTag attributes. |
java.lang.String |
removeDecoration(java.lang.String aString)
Removes the id character from the beginning of the string. |
void |
setId(char anId)
Sets the value of id. |
static void |
setIdSet(java.lang.String aString)
Sets the value of idSet. |
Vector |
toStrings()
Returns a visual representation of this decorator. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String str,
Context ctx)
Unformat strings that between ndxFrom and ndxTo into the Context. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String str,
DataElement de)
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, getAttributeValueForXMLFormat, 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 id
public static java.lang.String idSet
Constructor Detail |
---|
public Identifier()
public Identifier(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 getId()
public static java.lang.String getIdSet()
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 setId(char anId)
anId
- charpublic static void setIdSet(java.lang.String aString)
aString
- java.lang.Stringpublic Vector toStrings()
toStrings
in class FormatDecorator
public int unformat(int ndxFrom, int ndxTo, java.lang.String str, Context ctx) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class FormatElement
str
- java.lang.StringndxFrom
- intndxTo
- intctx
- com.ibm.btt.base.Context;
DSEInvalidRequestException
DSEInvalidArgumentException
public int unformat(int ndxFrom, int ndxTo, java.lang.String str, DataElement de) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class FormatElement
str
- java.lang.StringndxFrom
- intndxTo
- intde
- com.ibm.btt.base.DataElement;
DSEInvalidRequestException
DSEInvalidArgumentException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |