|
|||||||||
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.KeyedCollectionFormat
This abstract class contains a collection of format elements used to format the elements of a KeyedCollection. This class provides a protocol to add, remove, and change these elements.
Fields inherited from class com.ibm.dse.base.FormatElement |
dataElementName,
name |
Constructor Summary | |
KeyedCollectionFormat()
|
Method Summary | |
KeyedCollectionFormat |
add(FormatElement aFormatElement)
Adds an element to the last position of the KeyedCollection. |
KeyedCollectionFormat |
addElementAt(FormatElement aFormatElement,
int pos)
Adds an element to the position determined by the pos parameter. |
KeyedCollectionFormat |
addFirst(FormatElement aFormatElement)
Adds an element to the first position of the KeyedCollection. |
FormatElement |
at(int anIndex)
Returns the element at the position marked by anIndex. |
java.lang.String |
format(Context aContext)
Formats data elements getting them from the context. |
java.lang.String |
format(DataElement aDataElement)
Formats KeyedCollection passed as parameter. |
abstract java.lang.String |
formatContext(Context aContext)
Abstract method. |
abstract java.lang.String |
formatKeyedCollection(KeyedCollection aKeyedCollection)
Abstract method. |
Vector |
getElements()
Gets the elements property (Vector) value. |
java.util.Enumeration |
getEnumeration()
Returns the elements of this format as an Enumeration. |
void |
removeAll()
Remove the elements of this format. |
FormatElement |
removeAt(int anIndex)
Remove the element of this format marked by anIndex. |
void |
setElements(Vector v)
Sets the elements property (Vector) value. |
int |
size()
Returns the number of elements of this format. |
DataElement |
unformat(java.lang.String aString,
Context aContext)
Returns a data element by unformatting the KeyedCollection using the context passed as a parameter. |
DataElement |
unformat(java.lang.String aString,
DataElement aDataElement)
Returns a data element by unformatting the KeyedCollection using the data element passed as a parameter. |
abstract DataElement |
unformatContext(java.lang.String aString,
Context aContext)
Abstract method. |
abstract KeyedCollection |
unformatKeyedCollection(java.lang.String aString,
KeyedCollection aKeyedCollection)
Abstract method. |
Methods inherited from class com.ibm.dse.base.FormatElement |
exceptionInfo,
externalizer,
extract,
format,
getDataElementName,
getExternalizer,
getName,
getTagName,
initializeFrom,
isCacheable,
isConstant,
readExternal,
readExternal,
readObject,
reinitialize,
removeExternal,
rootDecorated,
setDataElementName,
setExternalizer,
setName,
setSize,
toString,
toStrings,
toTags,
unformat,
writeExternal,
writeExternal |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public KeyedCollectionFormat()
Method Detail |
public KeyedCollectionFormat add(FormatElement aFormatElement)
public KeyedCollectionFormat addElementAt(FormatElement aFormatElement, int pos)
aFormatElement
- FormatElementpos
- intpublic KeyedCollectionFormat addFirst(FormatElement aFormatElement)
aFormatElement
- FormatElementpublic FormatElement at(int anIndex)
anIndex
- intpublic 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
- DataElementpublic abstract java.lang.String formatContext(Context aContext) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
aContext
- com.ibm.dse.base.Contextpublic abstract java.lang.String formatKeyedCollection(KeyedCollection aKeyedCollection) throws DSEInvalidClassException, DSEInvalidRequestException, DSEInvalidArgumentException
aContext
- com.ibm.dse.base.KeyedCollectionpublic Vector getElements()
setElements(com.ibm.dse.base.Vector)
public java.util.Enumeration getEnumeration()
public void removeAll()
public FormatElement removeAt(int anIndex)
public void setElements(Vector v)
elements
- The new value for the property.getElements()
public int size()
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
- StringaDataElement
- DataElementpublic abstract DataElement unformatContext(java.lang.String aString, Context aContext) throws DSEInvalidRequestException, DSEInvalidArgumentException
aString
- java.lang.StringaContext
- com.ibm.dse.base.Contextpublic abstract KeyedCollection unformatKeyedCollection(java.lang.String aString, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException, DSEInvalidArgumentException
aString
- StringaKeyedCollection
- KeyedCollection.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |