public class SumNode extends TreeNodeAdapter
| Constructor and Description |
|---|
SumNode(TreeNode oper1,
java.lang.String operator,
TreeNode oper2)
Constructor takes operands
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(MboRemote mbo)
This node cannot be a boolean.
|
java.util.Date |
getDate(MboRemote mbo)
This node can be a date, but an exception will be thrown if the operands are not a
a date and a number.
|
double |
getDouble(MboRemote mbo)
Evaluates the node and returns it's value as a double.
|
int |
getInt(MboRemote mbo)
Evaluates the node and returns it's value as an integer.
|
int |
getNodeDataType()
The data type of this node depends on the operation & maybe the types of the operands.
|
int |
getNodeDataType(MboRemote mbo)
Better check with mbo information
|
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.
|
void |
validate(MboRemote mbo)
Determine if there is a valid combination of parameters.
|
toStringpublic void validate(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean getBoolean(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Date getDate(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getString(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic double getDouble(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic int getInt(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic int getNodeDataType()
public int getNodeDataType(MboRemote mbo) throws MXException, java.rmi.RemoteException
getNodeDataType in interface TreeNodegetNodeDataType in class TreeNodeAdapterMXExceptionjava.rmi.RemoteExceptionpublic void setOperands(MboRemote mbo, java.util.Vector operands) throws MXException, java.rmi.RemoteException
TreeNodeMXExceptionjava.rmi.RemoteException