|
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.FormatDecorator
com.ibm.dse.base.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
|
Fields inherited from class com.ibm.dse.base.FormatDecorator |
---|
decorated |
Fields inherited from class com.ibm.dse.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. |
Methods inherited from class com.ibm.dse.base.FormatDecorator |
---|
extract, format, format, getDataElementName, getDecorated, getName, isConstant, isItConstant, reinitialize, rootDecorated, rootDecorator, setDecorated, toString, unformat, unformat |
Methods inherited from class com.ibm.dse.base.FormatElement |
---|
exceptionInfo, externalizer, format, getExternalizer, getTagName, isCacheable, readExternal, readExternal, readObject, removeExternal, 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 maxLength
Constructor Detail |
public MaximumLength()
public MaximumLength(java.lang.String aName) throws 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 interface Externalizable
initializeFrom
in class FormatElement
aTag
- com.ibm.dse.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 interface Externalizable
toStrings
in class FormatDecorator
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |