public abstract class FunctionTreeNodeAdapter extends TreeNodeAdapter
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
operands |
Constructor and Description |
---|
FunctionTreeNodeAdapter() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
childrenInfoString()
Sub-classes should override this method to return the result of
toString on each child, separated by new lines.
|
boolean |
getBoolean(MboRemote mbo)
Numbers can't be represented by booleans so this throws an exception
|
java.util.Date |
getDate(MboRemote mbo)
Numbers can't be represented by dates so this throws an exception
|
int |
getInt(MboRemote mbo)
Numbers can't be represented by numbers so this throws an exception
|
int |
getNodeDataType()
Returns the data type of the node.
|
int |
getNodeDataType(MboRemote mbo)
Helper method gets the datatype from attribute nodes when needed.
|
java.lang.String |
getString(MboRemote mbo)
Evaluates the node and returns it's value as a String.
|
void |
setOperands(MboRemote mbo,
java.util.Vector operands)
Sets the operands for custom class.
|
parentInfoString, toString
public java.lang.String getString(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int getInt(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Date getDate(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getBoolean(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String childrenInfoString()
TreeNodeAdapter
Note there is no new line character after the last child.
childrenInfoString
in class TreeNodeAdapter
public int getNodeDataType()
TreeNode
public int getNodeDataType(MboRemote mbo) throws MXException, java.rmi.RemoteException
TreeNodeAdapter
getNodeDataType
in interface TreeNode
getNodeDataType
in class TreeNodeAdapter
MXException
java.rmi.RemoteException
public void setOperands(MboRemote mbo, java.util.Vector operands) throws MXException, java.rmi.RemoteException
TreeNode
MXException
java.rmi.RemoteException