com.ibm.dse.base
Class Delimiter
java.lang.Object
|
+--com.ibm.dse.base.FormatElement
|
+--com.ibm.dse.base.FormatDecorator
|
+--com.ibm.dse.base.Delimiter
- public class Delimiter
- extends FormatDecorator
The Delimiter class adds an delimiter character to its decorated String in
order to provide a mechanism to separate the different data formats.
- See Also:
- Serialized Form
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. |
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. |
Methods inherited from class com.ibm.dse.base.FormatDecorator |
format,
format,
getDataElementName,
getDecorated,
getName,
isConstant,
rootDecorated,
rootDecorator,
setDecorated,
toString,
unformat,
unformat |
Methods inherited from class com.ibm.dse.base.FormatElement |
exceptionInfo,
externalizer,
format,
getExternalizer,
getTagName,
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 |
delimiterChar
public char delimiterChar
Delimiter
public Delimiter()
- This constructor creates a Delimiter object.
Delimiter
public Delimiter(java.lang.String aName)
throws java.io.IOException
- This constructor creates the Delimiter object with the id aName.
- Parameters:
aName
- java.lang.String
addDecoration
public java.lang.String addDecoration(java.lang.String aString)
- Appends the delimiter character to the end of the string.
- Overrides:
- addDecoration in class FormatDecorator
extract
public java.lang.String[] extract(java.lang.String aString)
throws DSEInvalidArgumentException
- Extracts the string up to the first occurrence of the delimiter.
- Overrides:
- extract in class FormatDecorator
- Tags copied from class: FormatDecorator
- Parameters:
aString
- String- Returns:
- java.lang.String[]
getDelimiterChar
public char getDelimiterChar()
- Returns the value of the delimiterChar.
- Returns:
- char
initializeFrom
public java.lang.Object initializeFrom(Tag aTag)
- Initializes a Delimiter with the Tag attributes.
- Overrides:
- initializeFrom in class FormatElement
- Parameters:
aTag
- com.ibm.dse.base.Tag- Returns:
- java.lang.Object
removeDecoration
public java.lang.String removeDecoration(java.lang.String aString)
throws DSEInvalidArgumentException
- Remove the delimiter character from the end of the string.
- Overrides:
- removeDecoration in class FormatDecorator
- Tags copied from class: FormatDecorator
- Parameters:
aString
- String- Returns:
- java.lang.String
setDelimiterChar
public void setDelimiterChar(char aChar)
- Sets the value of the delimiterChar.
- Parameters:
aChar
- char
toStrings
public Vector toStrings()
- Returns a visual representation of this decorator.
- Overrides:
- toStrings in class FormatDecorator
- Returns:
- java.lang.String