Package org.cristalise.kernel.lookup
Class Path
java.lang.Object
org.cristalise.kernel.lookup.Path
- All Implemented Interfaces:
C2KLocalObject
- Direct Known Subclasses:
DomainPath,ItemPath,RolePath
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionPath()protectedCreates a path from a slash separated string (big endian)protectedCreates a path with an arraylist of the path (big endian)protectedCreate a path by appending a child string to an existing path -
Method Summary
Modifier and TypeMethodDescriptiondump()booleanbooleanexists()booleanexists(TransactionKey transactionKey) Each object belongs to a specific type defined inClusterTypegetItemPath(TransactionKey transactionKey) String[]getPath()abstract StringgetRoot()Returns root as it is defined as 'domain', 'entity' or 'role' in subclassesDeprecated.bad method name, use getStringPath() insteadgetStringPath(boolean addRoot) getUUID()inthashCode()voidSets the name of the C2KLocalObjectvoidvoidString array path e.g.voidclones the path objecttoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cristalise.kernel.entity.C2KLocalObject
getClusterPath, getName
-
Field Details
-
delim
- See Also:
-
mPath
-
-
Constructor Details
-
Path
public Path() -
Path
Creates a path with an arraylist of the path (big endian) -
Path
Creates a path from a slash separated string (big endian) -
Path
Create a path by appending a child string to an existing path
-
-
Method Details
-
setPath
String array path e.g. { "Product", "Crystal", "Barrel", "2L", "331013013348" }. The root node name (i.e. entity, domain or role) is removed from the beginning. -
setPath
-
getRoot
Returns root as it is defined as 'domain', 'entity' or 'role' in subclasses- Returns:
- root as it is defined as 'domain', 'entity' or 'role' in subclasses
-
getUUID
-
getItemPath
- Throws:
ObjectNotFoundException
-
getItemPath
- Throws:
ObjectNotFoundException
-
setPath
clones the path object -
getPath
-
getStringPath
-
getStringPath
-
getString
Deprecated.bad method name, use getStringPath() instead -
exists
public boolean exists() -
exists
-
toString
-
equals
-
hashCode
public int hashCode() -
dump
-
setName
Description copied from interface:C2KLocalObjectSets the name of the C2KLocalObject- Specified by:
setNamein interfaceC2KLocalObject- Parameters:
name- Name of the C2KLocalObject
-
getClusterType
Description copied from interface:C2KLocalObjectEach object belongs to a specific type defined inClusterType- Specified by:
getClusterTypein interfaceC2KLocalObject- Returns:
- string id of the type
-