|
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.BeanCollection
@ATTR(value="bean#String#REQUIRED") public class BeanCollection
Nested Class Summary | |
---|---|
(package private) class |
BeanCollection.MyEnumeration
|
Field Summary | |
---|---|
static java.lang.String |
ATTR_BEAN
|
static java.lang.String |
CREATINSTANCE
if autoCreateSubElementInstance equals true will dynamically create bean's element instance |
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 | |
---|---|
|
BeanCollection()
This is the default constructor used to create a BeanCollection object. |
|
BeanCollection(java.lang.Object bean)
This constructor used to create a BeanCollection Object. |
protected |
BeanCollection(java.lang.Object bean,
int key,
java.lang.Object subParentBean)
|
protected |
BeanCollection(java.lang.Object bean,
java.lang.Object parentBean)
|
Method Summary | |
---|---|
void |
addElement(DataElement dataElement)
Deprecated. |
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 KeyedCollection cloned from the current one |
java.lang.Object |
getBean()
Return the bean value |
java.lang.String |
getCompositeKey()
Deprecated. |
java.lang.String |
getDescription()
Deprecated. |
PropertyDescription |
getDescriptor()
Deprecated. |
DataElement |
getElementAt(int index)
Deprecated. |
DataElement |
getElementAt(java.lang.String name)
Returns the data element identified by its name. |
DataElement |
getElementAtAnyLevel(java.lang.String name)
Deprecated. |
protected DataElement |
getElementAtFirstLevel(java.lang.String name)
Deprecated. |
Hashtable |
getElements()
Deprecated. |
java.util.Enumeration |
getEnumeration()
Deprecated. |
int |
getIndexOf(int from,
java.lang.String name)
Deprecated. |
int |
getIndexOf(java.lang.String name)
Deprecated. |
static BeanCollection |
getInstance()
Get the BeanColleciton instance |
Key |
getKey()
Deprecated. |
Hashtable |
getNestedElements()
Deprecated. |
Hashtable |
getOrder()
Deprecated. |
java.util.Vector |
getOrderVector()
Deprecated. |
Hashtable |
getParameters()
Deprecated. |
protected java.lang.Object |
getParentBean()
|
ElementState |
getState()
Deprecated. |
java.lang.Object |
getValue()
Get the bean value |
java.lang.Object |
initializeFrom(Tag aTag)
Initialize a beanCollection from its tag in XML. |
boolean |
isAmended()
Deprecated. |
boolean |
isCached()
Deprecated. |
boolean |
isCreateInstance()
return the boolean value of if dynamically create bean's element instance |
boolean |
isSerializable()
verify if bean implements the Serializable interfaces |
void |
nestedElements(java.util.Hashtable theTable)
Returns all the DataElements included in this collection at any level. |
Vector |
nestedFields()
Deprecated. |
Vector |
nestedKeyedCollections()
Deprecated. |
void |
nestedQualifiedElements(java.util.Hashtable theTable,
java.lang.String Path)
Deprecated. |
void |
readFromStream(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
void |
removeAll()
remove all current bean's declaredFields value,not support remove SuperClass's field |
DataElement |
removeElementAt(int index)
Deprecated. |
DataElement |
removeElementAt(java.lang.String name)
Remove the current bean's field value identified by its name |
protected DataElement |
removeElementAtFirstLevel(java.lang.String name)
Remove the current bean's fields value identified by its name |
protected void |
reorderElements(int from)
Deprecated. |
void |
setAmended(boolean value)
Deprecated. |
void |
setBean(java.lang.Object bean)
Set the bean value |
void |
setCompositeKey(java.lang.String compositeKey)
Deprecated. |
void |
setCreateInstance(boolean createInstance)
set the boolean value of if dynamically create bean's element instance |
void |
setDescription(java.lang.String description)
Deprecated. |
void |
setDescriptor(PropertyDescription descriptor)
Deprecated. |
void |
setElements(Hashtable anElements)
Deprecated. |
void |
setIsCached(boolean cached)
Deprecated. |
void |
setOrder(Hashtable anOrder)
Deprecated. |
void |
setOrder(Vector anOrder)
Deprecated. |
void |
setOrder(java.util.Vector anOrder)
Deprecated. |
protected void |
setParentBean(java.lang.Object parentBean)
|
void |
setState(ElementState state)
Deprecated. |
void |
setValue(java.lang.Object value)
Set a bean instance |
void |
setValueAt(java.lang.String name,
java.lang.Object value)
The method call tyrGetBeanElement method and set the bean property value |
void |
setValueAt(java.lang.String name,
java.lang.Object value,
java.lang.String type)
Calls the addElement() method to create the aName DataElement (instance of aType) with its value set to aValue. |
int |
size()
Get the current bean declaredFileds length |
java.lang.String |
toString()
Returns a visual representation of the BeanCollection. |
Vector |
toStrings()
Returns a visual representation of the BeanCollection. |
DataElement |
tryGetElementAt(java.lang.String aName)
Returns the data element identified by its name. |
DataElement |
tryGetElementAtAnyLevel(java.lang.String name)
Deprecated. |
protected DataElement |
tryGetElementAtFirstLevel(java.lang.String name)
Deprecated. |
java.lang.Object |
validate(java.lang.Object toValidate)
Deprecated. |
java.lang.Object |
validate(java.lang.Object toValidate,
java.lang.String convType)
Deprecated. |
java.lang.Object |
validateObject(java.lang.Object toValidate)
No need to validate bean attributes |
void |
writeToStream(java.io.ObjectOutput s)
Provides concrete serialization handling for KeyedCollection. |
Methods inherited from class com.ibm.btt.base.KeyedCollection |
---|
calculeNestedElements, calculeNestedQualifiedElements, getDynamic, isCompressable, isDynamic, readExternal, setCompressable, setDynamic, setDynamic, stringValueOf, tryGetValueAt, trySetValueAt, writeExternal |
Methods inherited from class com.ibm.btt.base.DataCollection |
---|
getValueAt, nestedElements |
Methods inherited from class com.ibm.btt.base.DataElement |
---|
externalizer, getErrorInfo, getExternalizer, getName, getParameter, getTagName, readExternal, readObject, removeExternal, setErrorInfo, setExternalizer, setName, setParameter, setParameters, setSerializable, toTags, writeExternal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTR_BEAN
public static final java.lang.String CREATINSTANCE
Constructor Detail |
---|
public BeanCollection()
public BeanCollection(java.lang.Object bean)
bean
- protected BeanCollection(java.lang.Object bean, java.lang.Object parentBean)
protected BeanCollection(java.lang.Object bean, int key, java.lang.Object subParentBean)
Method Detail |
---|
public boolean isCreateInstance()
public void setCreateInstance(boolean createInstance)
createInstance
- public static BeanCollection getInstance()
public java.lang.Object getBean()
public void setBean(java.lang.Object bean)
bean
- protected java.lang.Object getParentBean()
protected void setParentBean(java.lang.Object parentBean)
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
initializeFrom
in class KeyedCollection
aTag
- Tag
java.io.IOException
@Deprecated public Hashtable getParameters()
DataElement
getParameters
in class DataElement
public void setValueAt(java.lang.String name, java.lang.Object value) throws DSEInvalidArgumentException, DSEObjectNotFoundException
setValueAt
in class KeyedCollection
String
- nameObject
- value
DSEInvalidArgumentException
DSEObjectNotFoundException
public DataElement tryGetElementAt(java.lang.String aName)
tryGetElementAt
in class KeyedCollection
aName
- java.lang.String - The path and name of the data element to be retrievedisCreateInstance
- java.lang.Boolean - Estimate if create the default element instance when java bean's element is null
@Deprecated public java.lang.Object validate(java.lang.Object toValidate, java.lang.String convType) throws DSETypeException
validate
in class DataCollection
toValidate
- ObjectconvType
- String
DSETypeException
- - Thrown if the validation is unsuccessful@Deprecated public java.lang.Object validate(java.lang.Object toValidate) throws DSETypeException
validate
in class DataElement
toValidate
- Object
DSETypeException
- - Thrown if the validation is unsuccessfulpublic void setValue(java.lang.Object value) throws DSEInvalidArgumentException
setValue
in class KeyedCollection
Object
- value
DSEInvalidArgumentException
- - The parameter is not a Hashtable Objectpublic java.lang.Object validateObject(java.lang.Object toValidate) throws DSETypeException
validateObject
in class DataElement
toValidate
- Object
DSETypeException
- - Thrown if the validation is unsuccessfulpublic java.lang.Object getValue()
getValue
in class KeyedCollection
@Deprecated public void addElement(DataElement dataElement)
KeyedCollection
addElement
in class KeyedCollection
dataElement
- DataElement@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
KeyedCollection
clone
in interface DSECloneable
clone
in class KeyedCollection
java.lang.CloneNotSupportedException
- - if a problem occurs trying to clone the object@Deprecated public DataElement getElementAt(int index) throws DSEObjectNotFoundException
KeyedCollection
getElementAt
in class KeyedCollection
index
- int
DSEObjectNotFoundException
@Deprecated public void setOrder(Vector anOrder)
public void setValueAt(java.lang.String name, java.lang.Object value, java.lang.String type) throws DSEInvalidArgumentException, DSEObjectNotFoundException
KeyedCollection
setValueAt
in class KeyedCollection
DSEInvalidArgumentException
DSEObjectNotFoundException
public int size()
size
in class KeyedCollection
public java.lang.String toString()
toString
in class KeyedCollection
public Vector toStrings()
toStrings
in class KeyedCollection
@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 protected DataElement tryGetElementAtFirstLevel(java.lang.String name)
KeyedCollection
tryGetElementAtFirstLevel
in class KeyedCollection
name
- java.lang.String
public DataElement getElementAt(java.lang.String name) throws DSEObjectNotFoundException
getElementAt
in class KeyedCollection
aName
- java.lang.String the path and name of the data element to be retrieved
DSEObjectNotFoundException
@Deprecated public DataElement getElementAtAnyLevel(java.lang.String name) throws DSEObjectNotFoundException
KeyedCollection
getElementAtAnyLevel
in class KeyedCollection
name
- java.lang.String - The name of the data element to be retrieved
DSEObjectNotFoundException
@Deprecated protected DataElement getElementAtFirstLevel(java.lang.String name) throws DSEObjectNotFoundException
KeyedCollection
getElementAtFirstLevel
in class KeyedCollection
name
- java.lang.String
DSEObjectNotFoundException
@Deprecated public Hashtable getElements()
KeyedCollection
getElements
in class KeyedCollection
KeyedCollection.setElements(com.ibm.btt.base.Hashtable)
@Deprecated public java.util.Enumeration getEnumeration()
KeyedCollection
getEnumeration
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 void removeAll()
removeAll
in class KeyedCollection
@Deprecated public DataElement removeElementAt(int index) throws DSEObjectNotFoundException
KeyedCollection
removeElementAt
in class KeyedCollection
index
- int
DSEObjectNotFoundException
public DataElement removeElementAt(java.lang.String name) throws DSEObjectNotFoundException
removeElementAt
in class KeyedCollection
name
- String
DSEObjectNotFoundException
protected DataElement removeElementAtFirstLevel(java.lang.String name) throws DSEObjectNotFoundException
removeElementAtFirstLevel
in class KeyedCollection
name
- String
DSEObjectNotFoundException
@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
@Deprecated public void nestedQualifiedElements(java.util.Hashtable theTable, java.lang.String Path)
DataCollection
nestedQualifiedElements
in class DataCollection
theTable
- java.util.HashtablePath
- String - The path where the DataCollection is@Deprecated public java.lang.String getCompositeKey()
DataElement
getCompositeKey
in class DataElement
@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
@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.ElementStatepublic boolean isSerializable()
isSerializable
in class DataElement
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 |