Class NameSpacePath

java.lang.Object
net.aifusion.metamodel.NameSpacePath

public class NameSpacePath extends Object
Class to represent a CIM namespace path. A namespace represents a group of (distributed) entities that can be considered as a logically single grouping.
Author:
Sharad Singhal
  • Constructor Details

    • NameSpacePath

      public NameSpacePath(String path)
      Create a namespace from a string representation. The path provided MUST include a valid local path
      Parameters:
      path - - namespace path representation in form "http://authority/pathElement0/pathelement1/..."
    • NameSpacePath

      public NameSpacePath(String scheme, String authority, String localPath)
      Create a name space from a string representation.
      Parameters:
      scheme - - scheme for this name space (e.g., "http")
      authority - - authority for this name space (e.g., (e.g. user:pass@hostname:port))
      localPath - - name space path representation in form "/pathElement0/pathelement1/...". Must be non-null
  • Method Details

    • getScheme

      public String getScheme()
      Get the name space scheme (e.g., http or https)
      Returns:
      - name space scheme (null if none set)
    • getAuthority

      public String getAuthority()
      Get the authority info (e.g., user:pass@host:port) for this name space path
      Returns:
      authority (null if none set)
    • getLocalPath

      public String getLocalPath()
      Get the local name space path from this namespace path
      Returns:
      - string representation of local path (e.g., /root/cimv2) or null of no local path is defined
    • toString

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object