atg.nucleus.naming
Class ComponentName

java.lang.Object
  extended by atg.nucleus.naming.ComponentName

public class ComponentName
extends java.lang.Object


Field Summary
static ComponentName BACK
           
static java.lang.String CLASS_VERSION
          Class version string
static ComponentName NONE
           
static ComponentName ROOT
          The root component name, which is always absolute
static ComponentName SEARCH
           
static ComponentName THIS
           
 
Method Summary
static ComponentName combineComponentNames(ComponentName pAbsoluteName, ComponentName pRelativeName)
          Looks up a component name, or creates a new one by combining an absolute and a relative component name
static ComponentName getComponentName(java.lang.String pName)
          Looks up a component name, or creates a new one.
 java.lang.String getName()
          Get the String representation of this ComponentName
 ComponentName[] getSubNames()
          Get the sub names of the component.
 boolean hasSubNames()
          Does this component name have subnames (delimmitted by "/")?
 boolean isAbsolute()
          Does the name start with a /.
 java.lang.String toString()
          toString()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


NONE

public static final ComponentName NONE

ROOT

public static final ComponentName ROOT
The root component name, which is always absolute


THIS

public static final ComponentName THIS

BACK

public static final ComponentName BACK

SEARCH

public static final ComponentName SEARCH
Method Detail

getComponentName

public static ComponentName getComponentName(java.lang.String pName)
Looks up a component name, or creates a new one.

Parameters:
pName - the component name to lookup/create.

combineComponentNames

public static ComponentName combineComponentNames(ComponentName pAbsoluteName,
                                                  ComponentName pRelativeName)
Looks up a component name, or creates a new one by combining an absolute and a relative component name

Parameters:
pAbsoluteName - the absolute name to use.
pRelativeName - the relative name to use.

getName

public java.lang.String getName()
Get the String representation of this ComponentName


getSubNames

public ComponentName[] getSubNames()
Get the sub names of the component. These are delimmitted by "/". If the name is atomic then this return an array containing itself.


hasSubNames

public boolean hasSubNames()
Does this component name have subnames (delimmitted by "/")?


isAbsolute

public boolean isAbsolute()
Does the name start with a /.


toString

public java.lang.String toString()
toString()

Overrides:
toString in class java.lang.Object