|
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.MaximumLength
@ATTR(value="length#Integer#IMPLIED") public class MaximumLength
This decorator checks that the length of the formatted String does not exceed the limit defined by its maxLength attribute.
Field Summary | |
---|---|
int |
maxLength
The maximal length of the format result. |
Fields inherited from class com.ibm.btt.base.FormatDecorator |
---|
decorated |
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
MaximumLength()
This is the default constructor used to create a MaximumLength object. |
|
MaximumLength(java.lang.String aName)
This is the constructor used by the Externalizer to create a MaximumLength object. |
Method Summary | |
---|---|
java.lang.String |
addDecoration(java.lang.String aString)
Truncates the input String if it is longer than the value of the maxLength attribute. |
int |
getMaxLength()
Returns the value of maxLength. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a MaximumLength with the Tag attributes. |
java.lang.String |
removeDecoration(java.lang.String aString)
Returns the input String unmodified unless its length exceeds the value of the maxLength attribute. |
void |
setMaxLength(int aMaxLength)
Sets the value of maxLength. |
Vector |
toStrings()
Returns a visual representation of the 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 |
---|
extract, 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 int maxLength
Constructor Detail |
---|
public MaximumLength()
public MaximumLength(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
aString
- String
public int getMaxLength()
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 setMaxLength(int aMaxLength)
aMaxLength
- intpublic 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 |