public class AttributeNode extends TreeNodeAdapter
Constructor and Description |
---|
AttributeNode(java.lang.String attribute)
Constructor takes operands
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setOperands(MboRemote mbo,
java.util.Vector operands)
Sets the operands for custom class.
|
getNodeDataType, toString
public AttributeNode(java.lang.String attribute)
public static TreeNode createNode(java.lang.String attribute) throws ParseException
ParseException
psdi.util.parse.YesNode
,
psdi.util.parse.NoNode
,
psdi.util.parse.DateNode
,
psdi.util.parse.UserNode
,
psdi.util.parse.PersonNode
public java.lang.String getAttributeName()
public boolean getBoolean(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 java.lang.String getString(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getDouble(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 int getNodeDataType()
public int getAttributeDataType(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setOperands(MboRemote mbo, java.util.Vector operands) throws MXException, java.rmi.RemoteException
TreeNode
MXException
java.rmi.RemoteException