|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DataElement | +--com.ibm.dse.base.DataCollection | +--com.ibm.dse.base.IndexedCollection
This class contains a collection of elements of the same class ordered by index.
Fields inherited from class com.ibm.dse.base.DataElement |
description,
name,
state |
Constructor Summary | |
IndexedCollection()
This is the default constructor used to create an IndexedCollection object. |
|
IndexedCollection(java.lang.String aName)
This constructor creates an IndexedCollection object with a specified name. |
Method Summary | |
void |
addElement(DataElement aDataElement)
Adds an element at the end of the collection. |
java.lang.Object |
clone()
Returns a new IndexedCollection cloned from the current one. |
DataElement |
getDataElement()
Gets the dataElement defined in case of the indexed collection size is zero. |
DataElement |
getElementAt(int anIdentifier)
Returns the element located at the index anIdentifier. |
DataElement |
getElementAt(java.lang.String anIdentifier)
Performs a recursive search of the element. |
java.util.Vector |
getElements()
Returns the value of elements. |
Tag |
getElementSubTag()
Sets the data element |
java.util.Enumeration |
getEnumeration()
Returns the IndexedCollection's elements as an Enumeration. |
java.lang.Object |
getValue()
Returns the Indexed Collection's elements. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes an IndexedCollection with the attributes in aTag. |
void |
nestedQualifiedElements(java.util.Hashtable theTable,
java.lang.String Path)
Adds as qualified name all elements of this IndexedCollection to the Hashtable passed by parameter. |
void |
readExternal(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
void |
removeAll()
Removes all elements. |
DataElement |
removeElementAt(int anIndex)
Remove the element at the index marked by anIndex. |
DataElement |
removeElementAt(java.lang.String anIdentifier)
Performs a recursive search for the element. |
void |
setDataElement(DataElement aDataElement)
Sets the data element |
void |
setElements(Vector aVector)
Sets the value of elements. |
void |
setElementSubTag(Tag aSubTag)
Sets the data element |
void |
setValue(java.lang.Object aValue)
Validates the value to be set and if it succeeds then sets the value to the IndexedCollection from a Vector of DataElements. |
int |
size()
Returns the number of elements. |
java.lang.String |
toString()
Returns a visual representation of this data. |
Vector |
toStrings()
Returns a Vector containing a visual representation of this data. |
Vector |
toTags()
Returns a Vector with the indexed collection represented as a Tag. |
java.lang.Object |
validate(java.lang.Object toValidate)
Validates the object passed (that must be an indexed collection or a vector) and if successful, the object is returned, otherwise an appropriate exception is thrown. |
void |
writeExternal(java.io.ObjectOutput s)
Provides concrete serialization handling for IndexedCollection. |
Methods inherited from class com.ibm.dse.base.DataCollection |
getValueAt,
nestedElements,
nestedElements,
nestedFields,
nestedKeyedCollections,
setValueAt |
Methods inherited from class com.ibm.dse.base.DataElement |
externalizer,
getDescription,
getDescriptor,
getErrorInfo,
getExternalizer,
getKey,
getName,
getState,
getTagName,
readExternal,
readObject,
removeExternal,
setDescription,
setDescriptor,
setErrorInfo,
setExternalizer,
setName,
setState,
writeExternal |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public IndexedCollection()
public IndexedCollection(java.lang.String aName) throws java.io.IOException
aString
- java.lang.StringMethod Detail |
public void addElement(DataElement aDataElement)
aDataElement
- public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public DataElement getDataElement()
public DataElement getElementAt(int anIdentifier) throws DSEObjectNotFoundException
anIndent
- intpublic DataElement getElementAt(java.lang.String anIdentifier) throws DSEObjectNotFoundException
anIdentifier
- java.lang.Stringpublic java.util.Vector getElements()
public Tag getElementSubTag()
aDataElement
- com.ibm.dse.base.DataElementpublic java.util.Enumeration getEnumeration()
public java.lang.Object getValue()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
aTag
- Externalization.Tagpublic void nestedQualifiedElements(java.util.Hashtable theTable, java.lang.String Path)
theTable
- java.util.HashtablePath
- String The path where the IndexedCollection is.public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
s
- java.io.ObjectInputpublic void removeAll()
public DataElement removeElementAt(int anIndex) throws DSEObjectNotFoundException
anIndex
- intpublic DataElement removeElementAt(java.lang.String anIdentifier) throws DSEObjectNotFoundException
anIdentifier
- java.lang.Stringpublic void setDataElement(DataElement aDataElement)
aDataElement
- com.ibm.dse.base.DataElementpublic void setElements(Vector aVector)
aVector
- java.util.Vectorpublic void setElementSubTag(Tag aSubTag)
aDataElement
- com.ibm.dse.base.DataElementpublic void setValue(java.lang.Object aValue) throws DSEInvalidArgumentException
aValue
- java.lang.Object Must be a Vector of DataElements.public int size()
public java.lang.String toString()
public Vector toStrings()
public Vector toTags() throws java.io.IOException
public java.lang.Object validate(java.lang.Object toValidate) throws DSETypeException
toValidate
- Objectdescriptor
- PropertyDescriptionpublic void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
s
- java.io.ObjectOutput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |