|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.wbem.cim.CIMObjectPath
Path to the specified CIM class or CIM instance or CIM qualifier. The CIM object path is a reference to CIM elements. It is only valid in context of an active connection to a CIM object manager on a host. In order to uniquely identify a given object on a host, it includes the namespace, object name, and keys (if the object is an instance). The namespace is taken to be relative to the namespace that the CIMClient is currently connected to. A key is a property or set of properties used to uniquely identify an instance of a class. Key properties are marked with the KEY qualifier.
For example, the object path:
\\myserver\Root\cimv2\Solaris_ComputerSystem.Name=mycomputer:
CreationClassName=Solaris_ComputerSystem
has two parts:
\\myserver\Root\cimv2 - The default CIM namespace on
host myserver.
Solaris_ComputerSystem.Name=mycomputer,
CreationClassName=Solaris_ComputerSystem - A
specific Solaris Computer System object in the default namespace on host
myserver. This Solaris computer system is uniquely
identified by two key property values in the format
(key property = value):
| Constructor Summary | |
CIMObjectPath()
Constructs a default CIM Object Path with empty namespace, objectName and keys. |
|
CIMObjectPath(java.lang.String elementName)
Constructs a CIM Object Path referencing an object. |
|
CIMObjectPath(java.lang.String elementName,
java.lang.String nameSpace)
Constructs a CIM Object Path referencing an object in the current namespace or the specified relative namespace. |
|
CIMObjectPath(java.lang.String objectName,
java.util.Vector keys)
Constructs a CIM Object Path referencing the instance identified by the key values contained in the vector. |
|
| Method Summary | |
void |
addKey(java.lang.String name,
CIMValue value)
Adds a Key to the object path. |
boolean |
equals(java.lang.Object o)
Compares this object path with the specified object path for equality |
boolean |
equals(java.lang.Object o,
boolean ignoreClassOrigin)
Compares this object path with the specified object path for equality |
java.lang.String |
getHost()
Gets the host for this CIMObjectPath. |
java.util.Vector |
getKeys()
Gets the keys for this CIMObjectPath object. |
java.lang.String |
getNameSpace()
Gets the namespace for this CIMObjectPath. |
java.lang.String |
getObjectName()
Gets the object name for this CIMObjectPath. |
int |
hashCode()
Computes the hash code for this object path. |
void |
parse(java.lang.String p)
Parses the specified object name string by replacing each forward slash character (/) with an escaped backward slash character (\\). |
void |
setHost(java.lang.String host)
Sets the host for this CIMObjectPath object. |
void |
setKeys(java.util.Vector v)
Sets the keys for this CIMObjectPath. |
void |
setNameSpace(java.lang.String ns)
Sets the namespace for this CIMObjectPath object. |
void |
setObjectName(java.lang.String op)
Sets the object name for this CIMObjectPath. |
java.lang.String |
toString()
Returns a String representation of the CIMObjectPath. |
java.lang.String |
toXml()
Returns an XML representation of this CIM object path. |
| Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public CIMObjectPath()
public CIMObjectPath(java.lang.String elementName)
elementName - the string for the name of a CIM element.
public CIMObjectPath(java.lang.String elementName,
java.lang.String nameSpace)
objectName - the name of a CIM element.nameSpace - the namespace relative to the current namespace.
public CIMObjectPath(java.lang.String objectName,
java.util.Vector keys)
objectName - the name of the class the instance belongs to.keys - vector of CIMProperty. The keys of the instance
instantiated with key values.| Method Detail |
public void addKey(java.lang.String name,
CIMValue value)
name - name of the key propertyvalue - the CIMValue of the key propertypublic java.util.Vector getKeys()
public void setKeys(java.util.Vector v)
v - vector of CIMProperty.public java.lang.String getNameSpace()
public java.lang.String getHost()
public java.lang.String getObjectName()
public void parse(java.lang.String p)
p - String name of this objectpublic void setHost(java.lang.String host)
host - name of the hostpublic void setNameSpace(java.lang.String ns)
ns - string name of the namespacepublic void setObjectName(java.lang.String op)
op - name of this objectpublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object o)
o - the object to compare
public boolean equals(java.lang.Object o,
boolean ignoreClassOrigin)
o - the object to compareignoreClassOrigin - ignores the Class origins if true.
public java.lang.String toXml()
throws CIMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||