com.sybase.uep.bobclient.data
Class SubValueDescriptor
java.lang.Object
com.sybase.uep.bobclient.data.SubValueDescriptor
public class SubValueDescriptor
- extends java.lang.Object
Sometimes, we need to retrieve a sub-node value from a complex data type value,
the instance of this class contains the information on how to get it. It has two
fields _mboId and _attributeName. The first one is the Id of the complex data type
MBO, the latter indicates which attribute value should be retrieve.
For example, I want to get the value of id from a complex data type People(id,name)
variable var1, assume the id of complex data type MBO for People is "1", then should call:
SubValueDescriptor descriptor = new SubValueDescriptor("1", "id");
descriptor.getValue(var1);
- Author:
- haowang
Constructor Summary |
SubValueDescriptor(java.lang.String mboId,
java.lang.String attributeName)
Constructor |
Method Summary |
java.lang.Object |
getValue(java.lang.Object parentValue)
Retrieve the sub-node value |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubValueDescriptor
public SubValueDescriptor(java.lang.String mboId,
java.lang.String attributeName)
- Constructor
- Parameters:
mboId
- attributeName
-
getValue
public java.lang.Object getValue(java.lang.Object parentValue)
- Retrieve the sub-node value
- Parameters:
parentValue
- the parent value whose sub-node value you want
- Returns: