|
|||||||||
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.IndexedCollectionFormat
This class formats the elements of a IndexedCollection using the same format for each one.
Field Summary | |
protected int |
append
The append attribute. |
FormatElement |
element
|
Fields inherited from class com.ibm.dse.base.FormatElement |
dataElementName,
name |
Constructor Summary | |
IndexedCollectionFormat()
This is the default constructor used to create an IndexedCollectionFormat object. |
|
IndexedCollectionFormat(java.lang.String aName)
This is the constructor used by the externalizer to create an IndexedCollectionFormat object |
Method Summary | |
java.lang.String[] |
extract(java.lang.String aString)
Extracts an element a number of times equal to the timesRepeat attribute. |
java.lang.String |
format(DataElement aDataElement)
Verifies that the passed DataElement is an IndexedCollection and then calls formatIndexedCollection(). |
java.lang.String |
formatIndexedCollection(IndexedCollection anIndexedCollection)
Formats the IndexedCollection elements according to the FormatElement in the element attribute |
java.lang.String |
getAppend()
Returns the value of the append property. |
FormatElement |
getElement()
Returns the value of element. |
int |
getTimesRepeat()
Returns the value of timesRepeat. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes an IndexedCollectionFormat with the Tag attributes. |
void |
setAppend(java.lang.String aString)
Sets the value of the append property. |
void |
setElement(FormatElement aFormatElement)
Sets the value of element. |
void |
setTimesRepeat(int aNumber)
Sets the value of timesRepeat. |
Vector |
toStrings()
Returns an SGML representation of the instance. |
DataElement |
unformat(java.lang.String aString,
DataElement aDataElement)
Verifies that the passed DataElement is an IndexedCollection and calls unformatIndexedCollection(). |
IndexedCollection |
unformatIndexedCollection(java.lang.String aString,
IndexedCollection anIndexedCollection)
Update the IndexedCollection elements by interpreting the formatted string. |
Methods inherited from class com.ibm.dse.base.FormatElement |
exceptionInfo,
externalizer,
format,
format,
getDataElementName,
getExternalizer,
getName,
getTagName,
isCacheable,
isConstant,
readExternal,
readExternal,
readObject,
reinitialize,
removeExternal,
rootDecorated,
setDataElementName,
setExternalizer,
setName,
setSize,
toString,
toTags,
unformat,
unformat,
writeExternal,
writeExternal |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public FormatElement element
protected int append
Constructor Detail |
public IndexedCollectionFormat()
public IndexedCollectionFormat(java.lang.String aName) throws java.io.IOException
aName
- java.lang.StringMethod Detail |
public java.lang.String[] extract(java.lang.String aString) throws DSEInvalidArgumentException
aString
- java.lang.Stringpublic java.lang.String format(DataElement aDataElement) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
aDataElement
- DataElementpublic java.lang.String formatIndexedCollection(IndexedCollection anIndexedCollection) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
anIndexedCollection
- IndexedCollectionpublic java.lang.String getAppend()
public FormatElement getElement()
public int getTimesRepeat()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tagpublic void setAppend(java.lang.String aString)
aString
- String The new value of the property.public void setElement(FormatElement aFormatElement)
aFormatElement
- com.ibm.dse.base.FormatElementpublic void setTimesRepeat(int aNumber)
aNumber
- intpublic Vector toStrings()
public DataElement unformat(java.lang.String aString, DataElement aDataElement) throws DSEInvalidRequestException, DSEInvalidArgumentException
aString
- StringaDataElement
- DataElementpublic IndexedCollection unformatIndexedCollection(java.lang.String aString, IndexedCollection anIndexedCollection) throws DSEInvalidRequestException, DSEInvalidArgumentException
aString
- StringanIndexedCollection
- IndexedCollection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |