|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.cim.CIMObjectPath
public class CIMObjectPath
This class represents the CIM Object Path as as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004). In order to uniquely identify a given object , a CIM object path includes the namespace, object name and keys (if the object is an instance).
For example, the object path:
http://myserver/interop:My_ComputerSystem.Name=mycomputer,
CreationClassName=My_ComputerSystem
has two parts:
http://myserver/interop
- Specifies the
"interop"
namespace on the host myserver
.
My_ComputerSystem.Name=mycomputer,CreationClassName=My_ComputerSystem
-
Specifies a My_ComputerSystem
object which is uniquely
identified by two key properties and their corresponding values in the format
(key=value):
Name=mycomputer
CreationClassName=My_ComputerSystem
Constructor Summary | |
---|---|
CIMObjectPath(String objectPath)
Constructs a CIM Object Path referencing a CIM element. |
|
CIMObjectPath(String objectName,
String namespace)
Constructs a CIM Object Path referencing a CIM element along in the specified namespace. |
|
CIMObjectPath(String objectName,
String namespace,
CIMProperty<?>[] keys)
Constructs a CIM Object Path referencing an instance of the specified CIM element as defined in the specified namespace and identified by the given key properties and their corresponding values. |
|
CIMObjectPath(String host,
String namespace,
String objectName,
CIMProperty<?>[] keys)
Constructs a CIM Object Path referencing an instance of the specified CIM element as defined in the specified namespace on the specified host and identified by the given key properties and their corresponding values. |
|
CIMObjectPath(String scheme,
String host,
String port,
String namespace,
String objectName,
CIMProperty<?>[] keys)
Constructs a CIM Object Path referencing an instance of the specified CIM element as defined in the specified namespace on the specified host and identified by the given key properties and their corresponding values. |
|
CIMObjectPath(String scheme,
String host,
String port,
String namespace,
String objectName,
CIMProperty<?>[] keys,
String xmlSchemaName)
Constructs a CIM Object Path referencing an instance of the specified CIM element as defined in the specified namespace on the specified host and identified by the given key properties and their corresponding values. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares this CIM object path with the specified CIM object path for equality. |
boolean |
equalsModelPath(CIMObjectPath pModelPath)
Compares this model path with the specified model path for equality |
String |
getHost()
Gets the host. |
CIMProperty<?> |
getKey(String name)
Gets a key property by name. |
CIMProperty<?>[] |
getKeys()
Gets all key properties. |
String |
getNamespace()
Gets the namespace. |
String |
getObjectName()
Gets the object name. |
String |
getPort()
Gets the the port on the host to which the connection was established. |
String |
getScheme()
Get the connection scheme. |
String |
getXmlSchemaName()
Get the XML Schema for this object (optional) |
int |
hashCode()
Computes the hash code for this object path. |
String |
toString()
Returns a String representation of the CIM object path. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CIMObjectPath(String objectPath)
objectPath
- The string representation of an object path for a CIM element
that which will be parsed and used to initialize the objectpublic CIMObjectPath(String objectName, String namespace)
objectName
- The name of a CIM element.namespace
- The namespace relative to the current namespace.public CIMObjectPath(String objectName, String namespace, CIMProperty<?>[] keys)
objectName
- The name of the CIM element referenced.namespace
- The namespace in which the CIM element is defined.keys
- CIMProperty[] The keys and their corresponding values that
identify an instance of the CIM element.public CIMObjectPath(String host, String namespace, String objectName, CIMProperty<?>[] keys)
host
- The host name or IP Address.namespace
- The namepace in which the CIM element is defined.objectName
- The name of the CIM element referenced.keys
- CIMProperty[] The keys and their corresponding values that
identify an instance of the CIM element.public CIMObjectPath(String scheme, String host, String port, String namespace, String objectName, CIMProperty<?>[] keys)
scheme
- The connection scheme to the host (e.g. http, https, ...)host
- The host name or IP Address.port
- The port on the host to which the connection was established.namespace
- The namepace in which the CIM element is defined.objectName
- The name of the CIM element referenced.keys
- CIMProperty[] The keys and their corresponding values that
identify an instance of the CIM element.public CIMObjectPath(String scheme, String host, String port, String namespace, String objectName, CIMProperty<?>[] keys, String xmlSchemaName)
scheme
- The connection scheme to the host (e.g. http, https, ...)host
- The host name or IP Address.port
- The port on the host to which the connection was established.namespace
- The namepace in which the CIM element is defined.objectName
- The name of the CIM element referenced.keys
- CIMProperty[] The keys and their corresponding values that
identify an instance of the CIM element.xmlSchemaName
- -
The name of the XML Schema for this object. This
is only needed for protocols that require this information.
IllegalArguementException
- if the xmlSchemaNamespace is malformed.Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
o
- The object path to compare to this CIM object path.
public boolean equalsModelPath(CIMObjectPath pModelPath)
pModelPath
- the object to compare
public String getHost()
public CIMProperty<?> getKey(String name)
name
- The name of the key property to retrieve.
public CIMProperty<?>[] getKeys()
public String getNamespace()
public String getObjectName()
public String getPort()
public String getScheme()
public String getXmlSchemaName()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |