Package net.aifusion.metamodel
Class NameSpacePath
java.lang.Object
net.aifusion.metamodel.NameSpacePath
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 Summary
ConstructorDescriptionNameSpacePath
(String path) Create a namespace from a string representation.NameSpacePath
(String scheme, String authority, String localPath) Create a name space from a string representation. -
Method Summary
-
Constructor Details
-
NameSpacePath
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
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
Get the name space scheme (e.g., http or https)- Returns:
- - name space scheme (null if none set)
-
getAuthority
Get the authority info (e.g., user:pass@host:port) for this name space path- Returns:
- authority (null if none set)
-
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
-
hashCode
public int hashCode() -
equals
-