|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.FormatElement | +--com.ibm.dse.base.FormatDecorator
This is the parent abstact class of the decorators.
Decorators represent an additional process to be applied to a formatted String, independently of which concrete format element has created it.
Field Summary | |
FormatElement |
decorated
|
Fields inherited from class com.ibm.dse.base.FormatElement |
dataElementName,
name |
Constructor Summary | |
FormatDecorator()
|
Method Summary | |
abstract java.lang.String |
addDecoration(java.lang.String aString)
AddDecoration abstract method. |
java.lang.String[] |
extract(java.lang.String aString)
Overrides the extract() method of FormatElement to redirect the extract() method to the decorated String. |
java.lang.String |
format(Context aContext)
Calls the addDecoration() method and passing it the String requiring the decoration operation. |
java.lang.String |
format(DataElement aDataElement)
Calls the addDecoration() method and passing it the String requiring the decoration operation. |
java.lang.String |
getDataElementName()
Returns the dataElementName of decorated String. |
FormatElement |
getDecorated()
Returns the decorated FormatElement. |
java.lang.String |
getName()
Returns the value of name. |
java.lang.Boolean |
isConstant()
Returns true if the String is a constant formatted String. |
abstract java.lang.String |
removeDecoration(java.lang.String aString)
RemoveDecoration abstract method. |
FormatElement |
rootDecorated()
Returns the FormatElement decorated using this decorator even if other docorators exist. |
FormatDecorator |
rootDecorator()
Returns the decorator that is currently formatting the FormatElement. |
void |
setDecorated(FormatElement aFormatElement)
Sets the value of decorated. |
java.lang.String |
toString()
Returns a visual representation of this decorator. |
abstract Vector |
toStrings()
Returns a Vector containing a visual representation of the format. |
DataElement |
unformat(java.lang.String aString,
Context aContext)
Calls the removeDecoration() method and then unformats the String. |
DataElement |
unformat(java.lang.String aString,
DataElement aDataElement)
Calls the removeDecoration() method and then unformats the String. |
Methods inherited from class com.ibm.dse.base.FormatElement |
exceptionInfo,
externalizer,
format,
getExternalizer,
getTagName,
initializeFrom,
isCacheable,
readExternal,
readExternal,
readObject,
reinitialize,
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 FormatElement decorated
Constructor Detail |
public FormatDecorator()
Method Detail |
public abstract java.lang.String addDecoration(java.lang.String aString) throws DSEInvalidArgumentException
public java.lang.String[] extract(java.lang.String aString) throws DSEInvalidArgumentException
aString
- Stringpublic java.lang.String format(Context aContext) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
aContext
- com.ibm.dse.base.Contextpublic java.lang.String format(DataElement aDataElement) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
aDataElement
- com.ibm.dse.base.DataElementpublic java.lang.String getDataElementName()
public FormatElement getDecorated()
public java.lang.String getName()
public java.lang.Boolean isConstant()
public abstract java.lang.String removeDecoration(java.lang.String aString) throws DSEInvalidArgumentException
aString
- Stringpublic FormatElement rootDecorated()
public FormatDecorator rootDecorator()
public void setDecorated(FormatElement aFormatElement)
aFormatElement
- FormatElementpublic java.lang.String toString()
public abstract Vector toStrings()
public DataElement unformat(java.lang.String aString, Context aContext) throws DSEInvalidRequestException, DSEInvalidArgumentException
aString
- java.lang.StringaContext
- com.ibm.dse.base.Contextpublic DataElement unformat(java.lang.String aString, DataElement aDataElement) throws DSEInvalidRequestException, DSEInvalidArgumentException
aString
- java.lang.StringaDataElement
- com.ibm.dse.base.DataElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |