com.sybase.uep.bobclient.data
Class SubValueDescriptorChain
java.lang.Object
java.util.Vector
com.sybase.uep.bobclient.data.SubValueDescriptorChain
public class SubValueDescriptorChain
- extends java.util.Vector
Since there might be nested complex data type value, only one SubValueDescriptor
instance
will be not enough to retrieve the sub-node value. To resolve this, we need a chain of SubValueDescriptor
instances.
For example, there is a nested complex data type Order(No.,price,deliver_address) while the deliver_address
is complex data type Address(No.,Street,City,zip_code). Assume the complex data type MBO id for Order and Address
are "1" and "2" respectively. If I want the city name from a Order variable var1, should call:
SubValueDescriptorChain chain = new SubValueDescriptorChain();
chain.addThis(new SubValueDescriptor("1","deliver_address"));
chain.addThis(new SubValueDescriptor("2","City"));
Object value = null;
for(int i=0;i
- Author:
- haowang
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Methods inherited from class java.util.Vector |
addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SubValueDescriptorChain
public SubValueDescriptorChain()
addThis
public SubValueDescriptorChain addThis(SubValueDescriptor svd)
- Add a
SubValueDescriptor
to the chain
- Parameters:
svd
-
- Returns:
- the chain