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

Field Summary
static java.lang.String CURRENT_NODE
           
protected  com.oakgrovesystems.reactor.ReactorObjectId defaultRoot
           
static int DEFINITION_TYPE
           
static java.lang.String DEFINITION_TYPE_NAME
           
static int INSTANCE_TYPE
           
static java.lang.String INSTANCE_TYPE_NAME
           
static int INVALID_TYPE
           
static java.lang.String INVALID_TYPE_NAME
           
static int OBJECT_TYPE
           
static java.lang.String OBJECT_TYPE_NAME
           
static int OPERAND_TYPE
           
static java.lang.String OPERAND_TYPE_NAME
           
static java.lang.String PARENT_NODE
           
protected  java.lang.StringBuffer path
           
static int POLICY_TYPE
           
static java.lang.String POLICY_TYPE_NAME
           
static int PROCESS_TYPE
           
static java.lang.String PROCESS_TYPE_NAME
           
static java.lang.String ROOT_SEPARATOR
           
static java.lang.String SEPARATOR
           
static int STATUS_TYPE
           
static java.lang.String STATUS_TYPE_NAME
           
protected  int type
           
static java.lang.String TYPE_SEPARATOR
           
 
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)
           
 
Method Summary
 void append(java.lang.String label)
           
 boolean areTypesEquivalent(int a, int b)
           
 com.oakgrovesystems.reactor.LabelPath copy()
           
 boolean equals(java.lang.Object object)
           
 com.oakgrovesystems.reactor.ReactorObjectId getDefaultRoot()
           
 java.lang.String[] getLabelArray()
           
static java.lang.String getNameForType(int type)
           
 java.lang.String getPath()
           
 int getType()
           
static int getTypeForName(java.lang.String name)
           
 int hashCode()
           
static boolean isProcessType(int type)
           
 void prepend(java.lang.String label)
           
 void setDefaultRoot(com.oakgrovesystems.reactor.ReactorObjectId defaultRoot)
           
 void setPath(java.lang.String path)
           
 void setType(int type)
           
 org.jdom.Element toElement()
           
 java.lang.String toElementString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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'
Method Detail

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.