Class Path

java.lang.Object
org.cristalise.kernel.lookup.Path
All Implemented Interfaces:
C2KLocalObject
Direct Known Subclasses:
DomainPath, ItemPath, RolePath

public abstract class Path extends Object implements C2KLocalObject
  • Field Details

  • Constructor Details

    • Path

      public Path()
    • Path

      protected Path(String[] path)
      Creates a path with an arraylist of the path (big endian)
    • Path

      protected Path(String path)
      Creates a path from a slash separated string (big endian)
    • Path

      protected Path(Path parent, String child)
      Create a path by appending a child string to an existing path
  • Method Details

    • setPath

      public void setPath(String[] path)
      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

      public void setPath(String path)
    • getRoot

      public abstract String 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

      public UUID getUUID()
    • getItemPath

      public ItemPath getItemPath() throws ObjectNotFoundException
      Throws:
      ObjectNotFoundException
    • getItemPath

      public ItemPath getItemPath(TransactionKey transactionKey) throws ObjectNotFoundException
      Throws:
      ObjectNotFoundException
    • setPath

      public void setPath(Path path)
      clones the path object
    • getPath

      public String[] getPath()
    • getStringPath

      public String getStringPath()
    • getStringPath

      public String getStringPath(boolean addRoot)
    • getString

      @Deprecated public String getString()
      Deprecated.
      bad method name, use getStringPath() instead
    • exists

      public boolean exists()
    • exists

      public boolean exists(TransactionKey transactionKey)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object path)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • dump

      public String dump()
    • setName

      public void setName(String name)
      Description copied from interface: C2KLocalObject
      Sets the name of the C2KLocalObject
      Specified by:
      setName in interface C2KLocalObject
      Parameters:
      name - Name of the C2KLocalObject
    • getClusterType

      public ClusterType getClusterType()
      Description copied from interface: C2KLocalObject
      Each object belongs to a specific type defined in ClusterType
      Specified by:
      getClusterType in interface C2KLocalObject
      Returns:
      string id of the type