public class CIMInstance extends CIMObject implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
iAlias |
iAllProperties, iObjectPath
iQualifiers
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
Constructor and Description |
---|
CIMInstance()
Constructs an object of a CIMInstance.
|
CIMInstance(CIMObjectPath pObjectPath)
Constructs an object of a CIMInstance
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlias()
Returns the alias name for the instance
|
java.lang.String |
getClassName()
Returns the class name of the instance.
|
java.util.Vector |
getKeyValuePairs()
Returns a list of key properties in this CIMInstance.
|
java.lang.String |
getName()
Deprecated.
instances don't have names. However current implementation
provides access to the class name of the instance.
|
CIMObjectPath |
getObjectPath()
Gets the CIMObjectsPath for this CIMInstance.
|
int |
hashCode() |
static void |
main(java.lang.String[] args) |
void |
setAlias(java.lang.String pAliasName)
Specifies the alias for this instance.
|
void |
setClassName(java.lang.String pClassname)
Specifies the classname for this CIMInstance.
|
void |
setName(java.lang.String pName)
Specifies the name for this CIMInstance.
|
void |
setObjectPath(CIMObjectPath pObjectPath)
Specifies the CIMObjectPath for this CIMInstance.
|
java.lang.String |
toMOF()
Returns the MOF representation of this CIMInstance.
|
java.lang.String |
toString() |
void |
updateProperty(CIMProperty pProperty)
Updates the specified CIMProperty.
|
boolean |
updatePropertyValue(CIMProperty pProperty)
Updates the CIMProperty value.
|
void |
updatePropertyValue(java.util.Vector pProperties)
Updates the properties of the current CIMInstance with the vector of
CIMProperty objects.
|
addProperty, getAllProperties, getKeys, getProperties, getProperty, getProperty, getProperty, removeProperty, setProperties, setProperty
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers
appendTab, assign, compareTo, lessThan, vectorToMOFString, vectorToMOFString, vectorToMOFString
public CIMInstance()
public CIMInstance(CIMObjectPath pObjectPath)
pObjectPath
- public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class CIMElement
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getAlias()
public java.lang.String getClassName()
public java.util.Vector getKeyValuePairs()
public java.lang.String getName()
getName
in class CIMElement
public CIMObjectPath getObjectPath()
public void setObjectPath(CIMObjectPath pObjectPath)
setObjectPath
in class CIMObject
pObjectPath
- The object pathjava.lang.IllegalArgumentException
- if a null object path is specifiedpublic void setAlias(java.lang.String pAliasName)
pAliasName
- The aliaspublic void setClassName(java.lang.String pClassname)
pClassname
- The class namejava.lang.IllegalArgumentException
- forpublic void setName(java.lang.String pName)
setName
in class CIMElement
pName
- The namepublic java.lang.String toMOF()
public java.lang.String toString()
toString
in class java.lang.Object
public void updateProperty(CIMProperty pProperty)
pProperty
- The propertypublic boolean updatePropertyValue(CIMProperty pProperty)
pProperty
- The propertypublic void updatePropertyValue(java.util.Vector pProperties)
pProperties
- A property vectorpublic static void main(java.lang.String[] args)
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.