|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.wbem.cim.CIMNameSpace
Creates and instantiates a CIM namespace, an object that defines a scope within which object keys must be unique. This class is used to refer to an implementation that provides a domain in which class instances are unique. The CIM namespace is a logical grouping of CIM classes and CIM instances that represent managed objects in a particular environment. A CIM object name consists of two parts: namespace + model path. The CIMNameSpace class instantiates the namespace portion of the CIM object name. For more information regarding the description and rules for the model path and namespace, refer to the CIM specification at http://www.dmtf.org/
Constructor Summary | |
CIMNameSpace()
Constructor creates and instantiates a default CIM namespace name. |
|
CIMNameSpace(java.lang.String h)
Constructor for a CIM namespace, pointing to a specified host or URL. |
|
CIMNameSpace(java.lang.String host,
java.lang.String ns)
Constructor creates and instantiates a CIM namespace with the the specified host and CIM namespace name. |
Method Summary | |
java.lang.String |
getHost()
Gets the host name of this CIM namespace |
java.net.URL |
getHostURL()
Gets the host url of this CIM namespace |
java.lang.String |
getNameSpace()
Gets the name of this CIM namespace |
void |
parse(java.lang.String p)
Parses the name of a namespace by replacing the forward slash (/) with a backward slash (\). |
void |
setHost(java.lang.String h)
Sets the host name of this CIM namespace to the specified string |
void |
setNameSpace(java.lang.String ns)
Sets the name of this CIM namespace to the specified string |
java.lang.String |
toString()
Returns a String representation of the CIMNameSpace This method is intended to be used only for debugging purposes, and the format of the returned string may vary between implementations. |
java.lang.String |
toXml()
Returns the XML representation of the CIM namespace |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public CIMNameSpace()
public CIMNameSpace(java.lang.String h)
h
- The string for the host name. h
can be a
host name, ip address, or a URL of the form:
"http://myhost:8080/cimom"public CIMNameSpace(java.lang.String host, java.lang.String ns)
host
- the string representing the host name, ip
address, or URL.ns
- the string representing the name of this
CIM namespace.Method Detail |
public java.lang.String getNameSpace()
public java.lang.String getHost()
public java.net.URL getHostURL()
public void parse(java.lang.String p)
p
- the string to parsepublic void setNameSpace(java.lang.String ns)
ns
- the string representing the name of this
CIM namespacepublic void setHost(java.lang.String h)
h
- the string representing the host name of this
CIM namespacepublic java.lang.String toString()
public java.lang.String toXml()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |