|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.DataElement
com.ibm.btt.base.DataCollection
com.ibm.btt.base.KeyedCollection
com.ibm.btt.bean.MapCollection
public class MapCollection
Instances of this class contain a Map object and his parent bean This class provides a protocol for accessing the bean's attribute which type is Map by name, and for changing and removing map's identified key value.
Field Summary |
---|
Fields inherited from class com.ibm.btt.base.KeyedCollection |
---|
bufferSize, DEFAULT_BUFFER_SIZE, DEFAULT_COMPRESSION, elements, nestedElements, order |
Fields inherited from class com.ibm.btt.base.DataElement |
---|
description, name, parameters, state |
Constructor Summary | |
---|---|
|
MapCollection()
This is the default constructor used to create a MapCollection object. |
protected |
MapCollection(java.util.Map _map,
int key,
java.lang.Object parent,
boolean createInstance)
|
protected |
MapCollection(java.util.Map _map,
java.lang.Object bean,
boolean createInstance)
|
Method Summary | |
---|---|
void |
addElement(DataElement dataElement)
add DataElment to map,the key is dataElement's name, value is DataElement instance |
void |
addElement(java.lang.String name,
java.lang.Object value,
java.lang.String path,
java.lang.String type)
Deprecated. |
java.lang.Object |
clone()
Returns a new MapCollection cloned from the current one. |
java.lang.String |
getCompositeKey()
This is an override method |
java.lang.String |
getDescription()
Deprecated. |
PropertyDescription |
getDescriptor()
Deprecated. |
Hashtable |
getElements()
Deprecated. |
int |
getIndexOf(int from,
java.lang.String name)
Deprecated. |
int |
getIndexOf(java.lang.String name)
Deprecated. |
Key |
getKey()
Deprecated. |
java.util.Map |
getMap()
|
Hashtable |
getNestedElements()
Deprecated. |
Hashtable |
getOrder()
Deprecated. |
java.util.Vector |
getOrderVector()
Deprecated. |
ElementState |
getState()
Deprecated. |
java.lang.Object |
getValue()
Returns the elements of the keyedCollections. |
boolean |
isAmended()
Deprecated. |
boolean |
isCached()
Deprecated. |
void |
nestedElements(java.util.Hashtable theTable)
Returns all the DataElements included in this collection at any level. |
Vector |
nestedFields()
Deprecated. |
Vector |
nestedKeyedCollections()
Deprecated. |
void |
readFromStream(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
void |
removeAll()
Set map to null |
DataElement |
removeElementAt(java.lang.String name)
Removes the named data element. |
protected DataElement |
removeElementAtFirstLevel(java.lang.String name)
remove the bean's fields value identified by its name |
protected void |
reorderElements(int from)
Deprecated. |
void |
setAmended(boolean value)
Deprecated. |
void |
setCompositeKey(java.lang.String compositeKey)
Deprecated. |
void |
setDescription(java.lang.String description)
Deprecated. |
void |
setDescriptor(PropertyDescription descriptor)
Deprecated. |
void |
setElements(Hashtable anElements)
Deprecated. |
void |
setIsCached(boolean cached)
Deprecated. |
void |
setMap(java.util.Map map)
|
void |
setOrder(Hashtable anOrder)
Deprecated. |
void |
setOrder(Vector anOrder)
Deprecated. |
void |
setOrder(java.util.Vector anOrder)
Deprecated. |
void |
setState(ElementState state)
Deprecated. |
void |
setValue(java.lang.Object value)
Sets the value to the KeyedCollection from a Hashtable. |
int |
size()
return the map size |
DataElement |
tryGetElementAt(java.lang.String name)
Returns the data element identified by its name. |
DataElement |
tryGetElementAtAnyLevel(java.lang.String name)
Deprecated. |
DataElement |
tryGetElementAtFirstLevel(java.lang.String name)
Deprecated. |
void |
writeToStream(java.io.ObjectOutput s)
Provides concrete serialization handling for KeyedCollection. |
Methods inherited from class com.ibm.btt.base.KeyedCollection |
---|
calculeNestedElements, calculeNestedQualifiedElements, getDynamic, getElementAt, getElementAt, getElementAtAnyLevel, getElementAtFirstLevel, getEnumeration, initializeFrom, isCompressable, isDynamic, readExternal, removeElementAt, setCompressable, setDynamic, setDynamic, setValueAt, setValueAt, stringValueOf, toString, toStrings, tryGetValueAt, trySetValueAt, writeExternal |
Methods inherited from class com.ibm.btt.base.DataCollection |
---|
getValueAt, nestedElements, nestedQualifiedElements, validate |
Methods inherited from class com.ibm.btt.base.DataElement |
---|
externalizer, getErrorInfo, getExternalizer, getName, getParameter, getParameters, getTagName, isSerializable, readExternal, readObject, removeExternal, setErrorInfo, setExternalizer, setName, setParameter, setParameters, setSerializable, toTags, validate, validateObject, writeExternal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected MapCollection(java.util.Map _map, java.lang.Object bean, boolean createInstance)
public MapCollection()
protected MapCollection(java.util.Map _map, int key, java.lang.Object parent, boolean createInstance)
Method Detail |
---|
public java.util.Map getMap()
public void setMap(java.util.Map map)
public DataElement tryGetElementAt(java.lang.String name)
KeyedCollection
tryGetElementAt
in class KeyedCollection
name
- java.lang.String - The path and name of the data element to be retrieved
@Deprecated public void addElement(java.lang.String name, java.lang.Object value, java.lang.String path, java.lang.String type) throws DSEInvalidArgumentException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
KeyedCollection
addElement
in class KeyedCollection
name
- java.lang.String. - The Name of the DataElementvalue
- Object. - The Value of the DataElementpath
- java.lang.String. - The Path to the DataElementtype
- java.lang.String - The Type of the DataElement
DSEInvalidArgumentException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface DSECloneable
clone
in class KeyedCollection
java.lang.CloneNotSupportedException
- - if a problem occurs trying to clone the objectpublic void addElement(DataElement dataElement)
addElement
in class KeyedCollection
dataElement
- DataElementpublic void removeAll()
removeAll
in class KeyedCollection
public void setValue(java.lang.Object value) throws DSEInvalidArgumentException
KeyedCollection
setValue
in class KeyedCollection
value
- java.lang.Object - Must be a Hastable. The keys are Strings that represent the names of the dataelement
and the values of this keys are the DataElements Objects.
DSEInvalidArgumentException
- - The parameter is not a Hashtable Objectpublic java.lang.Object getValue()
KeyedCollection
getValue
in class KeyedCollection
@Deprecated public void setOrder(Vector anOrder)
@Deprecated public DataElement tryGetElementAtAnyLevel(java.lang.String name)
KeyedCollection
tryGetElementAtAnyLevel
in class KeyedCollection
name
- java.lang.String - The name of the data element to be retrieved
@Deprecated public DataElement tryGetElementAtFirstLevel(java.lang.String name)
KeyedCollection
tryGetElementAtFirstLevel
in class KeyedCollection
name
- java.lang.String
@Deprecated public Hashtable getElements()
KeyedCollection
getElements
in class KeyedCollection
KeyedCollection.setElements(com.ibm.btt.base.Hashtable)
public int size()
size
in class KeyedCollection
@Deprecated public int getIndexOf(int from, java.lang.String name)
KeyedCollection
getIndexOf
in class KeyedCollection
@Deprecated public int getIndexOf(java.lang.String name)
KeyedCollection
getIndexOf
in class KeyedCollection
@Deprecated public Hashtable getNestedElements()
KeyedCollection
getNestedElements
in class KeyedCollection
@Deprecated public Hashtable getOrder()
KeyedCollection
getOrder
in class KeyedCollection
KeyedCollection.setOrder(com.ibm.btt.base.Hashtable)
@Deprecated public java.util.Vector getOrderVector()
KeyedCollection
getOrderVector
in class KeyedCollection
KeyedCollection.setOrder(com.ibm.btt.base.Hashtable)
public java.lang.String getCompositeKey()
getCompositeKey
in class DataElement
KeyedColleciton.getCompositeKey()
@Deprecated public java.lang.String getDescription()
DataElement
getDescription
in class DataElement
@Deprecated public PropertyDescription getDescriptor()
DataElement
getDescriptor
in interface TypedData
getDescriptor
in class DataElement
@Deprecated public Key getKey() throws DSETypeException
DataElement
getKey
in interface TypedData
getKey
in class DataElement
DSETypeException
- - If the key can not be built from this business object@Deprecated public ElementState getState()
DataElement
getState
in class DataElement
@Deprecated public boolean isAmended()
DataElement
isAmended
in class DataElement
@Deprecated public boolean isCached()
DataElement
isCached
in class DataElement
public DataElement removeElementAt(java.lang.String name) throws DSEObjectNotFoundException
KeyedCollection
removeElementAt
in class KeyedCollection
name
- java.lang.String
DSEObjectNotFoundException
protected DataElement removeElementAtFirstLevel(java.lang.String name) throws DSEObjectNotFoundException
removeElementAtFirstLevel
in class KeyedCollection
name
- java.lang.String
DSEObjectNotFoundException
@Deprecated public void setAmended(boolean value)
DataElement
setAmended
in class DataElement
value
- boolean@Deprecated public void setCompositeKey(java.lang.String compositeKey)
DataElement
setCompositeKey
in class DataElement
@Deprecated public void setDescription(java.lang.String description)
DataElement
setDescription
in class DataElement
description
- java.lang.String@Deprecated public void setDescriptor(PropertyDescription descriptor)
DataElement
setDescriptor
in interface TypedData
setDescriptor
in class DataElement
descriptor
- PropertyDescription@Deprecated public void setIsCached(boolean cached)
DataElement
setIsCached
in class DataElement
@Deprecated public void setState(ElementState state)
DataElement
setState
in class DataElement
state
- com.ibm.btt.base.types.ElementState@Deprecated protected void reorderElements(int from)
KeyedCollection
reorderElements
in class KeyedCollection
from
- int@Deprecated public void setElements(Hashtable anElements)
KeyedCollection
setElements
in class KeyedCollection
@Deprecated public void setOrder(Hashtable anOrder)
KeyedCollection
setOrder
in class KeyedCollection
@Deprecated public void setOrder(java.util.Vector anOrder)
KeyedCollection
setOrder
in class KeyedCollection
anOrder
- - The new value for the propertyKeyedCollection.getOrder()
@Deprecated public Vector nestedFields()
DataCollection
nestedFields
in class DataCollection
@Deprecated public Vector nestedKeyedCollections()
DataCollection
nestedKeyedCollections
in class DataCollection
public void readFromStream(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
KeyedCollection
readFromStream
in class KeyedCollection
s
- java.io.ObjectInput
java.io.IOException
java.lang.ClassNotFoundException
public void writeToStream(java.io.ObjectOutput s) throws java.io.IOException
KeyedCollection
writeToStream
in class KeyedCollection
s
- java.io.ObjectOutput
java.io.IOException
public void nestedElements(java.util.Hashtable theTable)
nestedElements
in class DataCollection
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |