com.oakgrovesystems.reactor
Class LabelPath
java.lang.Object
|
+--com.oakgrovesystems.reactor.LabelPath
- All Implemented Interfaces:
- java.io.Serializable
- public class LabelPath
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
LabelPath()
|
LabelPath(org.jdom.Element element)
builds a label path from its xml representation |
LabelPath(int type,
com.oakgrovesystems.reactor.ReactorObjectId root,
java.lang.String path)
|
LabelPath(com.oakgrovesystems.reactor.ReactorObjectId root,
java.lang.String path)
|
LabelPath(java.lang.String inputString)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TYPE_SEPARATOR
public static final java.lang.String TYPE_SEPARATOR
- See Also:
- Constant Field Values
ROOT_SEPARATOR
public static final java.lang.String ROOT_SEPARATOR
- See Also:
- Constant Field Values
SEPARATOR
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
PARENT_NODE
public static final java.lang.String PARENT_NODE
- See Also:
- Constant Field Values
CURRENT_NODE
public static final java.lang.String CURRENT_NODE
- See Also:
- Constant Field Values
DEFINITION_TYPE
public static final int DEFINITION_TYPE
- See Also:
- Constant Field Values
INSTANCE_TYPE
public static final int INSTANCE_TYPE
- See Also:
- Constant Field Values
PROCESS_TYPE
public static final int PROCESS_TYPE
- See Also:
- Constant Field Values
OPERAND_TYPE
public static final int OPERAND_TYPE
- See Also:
- Constant Field Values
STATUS_TYPE
public static final int STATUS_TYPE
- See Also:
- Constant Field Values
POLICY_TYPE
public static final int POLICY_TYPE
- See Also:
- Constant Field Values
OBJECT_TYPE
public static final int OBJECT_TYPE
- See Also:
- Constant Field Values
INVALID_TYPE
public static final int INVALID_TYPE
- See Also:
- Constant Field Values
DEFINITION_TYPE_NAME
public static final java.lang.String DEFINITION_TYPE_NAME
- See Also:
- Constant Field Values
INSTANCE_TYPE_NAME
public static final java.lang.String INSTANCE_TYPE_NAME
- See Also:
- Constant Field Values
PROCESS_TYPE_NAME
public static final java.lang.String PROCESS_TYPE_NAME
- See Also:
- Constant Field Values
OPERAND_TYPE_NAME
public static final java.lang.String OPERAND_TYPE_NAME
- See Also:
- Constant Field Values
STATUS_TYPE_NAME
public static final java.lang.String STATUS_TYPE_NAME
- See Also:
- Constant Field Values
POLICY_TYPE_NAME
public static final java.lang.String POLICY_TYPE_NAME
- See Also:
- Constant Field Values
OBJECT_TYPE_NAME
public static final java.lang.String OBJECT_TYPE_NAME
- See Also:
- Constant Field Values
INVALID_TYPE_NAME
public static final java.lang.String INVALID_TYPE_NAME
- See Also:
- Constant Field Values
path
protected java.lang.StringBuffer path
defaultRoot
protected com.oakgrovesystems.reactor.ReactorObjectId defaultRoot
type
protected int type
LabelPath
public LabelPath()
LabelPath
public LabelPath(java.lang.String inputString)
throws LabelPathFormatException
LabelPath
public LabelPath(com.oakgrovesystems.reactor.ReactorObjectId root,
java.lang.String path)
LabelPath
public LabelPath(int type,
com.oakgrovesystems.reactor.ReactorObjectId root,
java.lang.String path)
LabelPath
public LabelPath(org.jdom.Element element)
throws AssertionException
- builds a label path from its xml representation
- Parameters:
element
- the label path xml
- Throws:
AssertionException
- if the element supplied is not 'label_path' or 'object_reference'
getTypeForName
public static int getTypeForName(java.lang.String name)
isProcessType
public static boolean isProcessType(int type)
getNameForType
public static java.lang.String getNameForType(int type)
getType
public int getType()
setType
public void setType(int type)
getDefaultRoot
public com.oakgrovesystems.reactor.ReactorObjectId getDefaultRoot()
setDefaultRoot
public void setDefaultRoot(com.oakgrovesystems.reactor.ReactorObjectId defaultRoot)
getPath
public java.lang.String getPath()
setPath
public void setPath(java.lang.String path)
getLabelArray
public java.lang.String[] getLabelArray()
append
public void append(java.lang.String label)
prepend
public void prepend(java.lang.String label)
toElement
public org.jdom.Element toElement()
toElementString
public java.lang.String toElementString()
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
areTypesEquivalent
public boolean areTypesEquivalent(int a,
int b)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
copy
public com.oakgrovesystems.reactor.LabelPath copy()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.