public class AttributeNode extends TreeNodeAdapter
| Constructor and Description |
|---|
AttributeNode(java.lang.String attribute)
Constructor takes operands
|
| 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.
|
static TreeNode |
createNode(java.lang.String attribute)
Factory constructor may create special nodes of other types.
|
int |
getAttributeDataType(MboRemote mbo)
Figures out the type of node this is from the Maximo Data Dictionary.
|
java.lang.String |
getAttributeName()
Special method that simply returns the name of the attribute.
|
boolean |
getBoolean(MboRemote mbo)
Returns the value of the attribute as a Boolean.
|
java.util.Date |
getDate(MboRemote mbo)
Returns the value of the atribute as a Date/Time.
|
double |
getDouble(MboRemote mbo)
Returns the value of the attribute as a double.
|
int |
getInt(MboRemote mbo)
Returns the value of the attribute as an integer.
|
int |
getNodeDataType()
The data type of this node depends on the operation & maybe the types of the operands.
|
java.lang.String |
getString(MboRemote mbo)
Returns the value of the attribute as a String.
|
java.math.BigDecimal |
handleFormulas(MboRemote mbo,
java.lang.String formulaProp) |
protected java.lang.String |
parentInfoString()
Sub-classes should override this method to create a string which
provides information for the parent node only.
|
void |
setOperands(MboRemote mbo,
java.util.Vector operands)
Sets the operands for custom class.
|
getNodeDataType, toStringpublic AttributeNode(java.lang.String attribute)
public static TreeNode createNode(java.lang.String attribute) throws ParseException
ParseExceptionpsdi.util.parse.YesNode,
psdi.util.parse.NoNode,
psdi.util.parse.DateNode,
psdi.util.parse.UserNode,
psdi.util.parse.PersonNodepublic java.lang.String getAttributeName()
public 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 java.math.BigDecimal handleFormulas(MboRemote mbo, java.lang.String formulaProp) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic 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 getAttributeDataType(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected java.lang.String parentInfoString()
parentInfoString in class TreeNodeAdapterprotected java.lang.String childrenInfoString()
Note there is no new line character after the last child.
childrenInfoString in class TreeNodeAdapterpublic void setOperands(MboRemote mbo, java.util.Vector operands) throws MXException, java.rmi.RemoteException
TreeNodeMXExceptionjava.rmi.RemoteException