Class CIMInstance
java.lang.Object
org.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifiableElement
org.sblim.wbem.cim.CIMObject
org.sblim.wbem.cim.CIMInstance
- All Implemented Interfaces:
Serializable, Comparable
- See Also:
-
Field Summary
FieldsFields inherited from class CIMObject
iAllProperties, iObjectPathFields inherited from class CIMQualifiableElement
iQualifiersFields inherited from class CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an object of a CIMInstance.CIMInstance(CIMObjectPath pObjectPath) Constructs an object of a CIMInstance -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetAlias()Returns the alias name for the instanceReturns the class name of the instance.Returns a list of key properties in this CIMInstance.getName()Deprecated.instances don't have names.Gets the CIMObjectsPath for this CIMInstance.inthashCode()static voidvoidSpecifies the alias for this instance.voidsetClassName(String pClassname) Specifies the classname for this CIMInstance.voidSpecifies the name for this CIMInstance.voidsetObjectPath(CIMObjectPath pObjectPath) Specifies the CIMObjectPath for this CIMInstance.toMOF()Returns the MOF representation of this CIMInstance.toString()voidupdateProperty(CIMProperty pProperty) Updates the specified CIMProperty.voidupdatePropertyValue(Vector pProperties) Updates the properties of the current CIMInstance with the vector of CIMProperty objects.booleanupdatePropertyValue(CIMProperty pProperty) Updates the CIMProperty value.Methods inherited from class CIMObject
addProperty, getAllProperties, getKeys, getProperties, getProperty, getProperty, getProperty, removeProperty, setProperties, setPropertyMethods inherited from class CIMQualifiableElement
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiersMethods inherited from class CIMElement
appendTab, assign, compareTo, lessThan, vectorToMOFString, vectorToMOFString, vectorToMOFString
-
Field Details
-
iAlias
-
-
Constructor Details
-
CIMInstance
public CIMInstance()Constructs an object of a CIMInstance. -
CIMInstance
Constructs an object of a CIMInstance- Parameters:
pObjectPath-
-
-
Method Details
-
clone
-
equals
- Overrides:
equalsin classCIMElement
-
hashCode
-
getAlias
Returns the alias name for the instance- Returns:
- string which represents the alias for the instance, or null if it hasn't beed specified
-
getClassName
Returns the class name of the instance.- Returns:
- string which defines the class name for the instance.
-
getKeyValuePairs
Returns a list of key properties in this CIMInstance.- Returns:
- a vector which provides direct access to the key properties of this instance.
-
getName
Deprecated.instances don't have names. However current implementation provides access to the class name of the instance.Returns the class name of this instance.- Overrides:
getNamein classCIMElement- Returns:
- The name
-
getObjectPath
Gets the CIMObjectsPath for this CIMInstance. Note that this method returns the internal representation of the objectpath. It is upto the application to deside when the objectpath must be cloned to maintain consistency.- Returns:
- The CIM object path
-
setObjectPath
Specifies the CIMObjectPath for this CIMInstance.- Specified by:
setObjectPathin classCIMObject- Parameters:
pObjectPath- The object path- Throws:
IllegalArgumentException- if a null object path is specified
-
setAlias
Specifies the alias for this instance.- Parameters:
pAliasName- The alias
-
setClassName
Specifies the classname for this CIMInstance.- Parameters:
pClassname- The class name- Throws:
IllegalArgumentException- for
-
setName
Specifies the name for this CIMInstance.- Overrides:
setNamein classCIMElement- Parameters:
pName- The name
-
toMOF
Returns the MOF representation of this CIMInstance.- Returns:
- The MOF representation
-
toString
-
updateProperty
Updates the specified CIMProperty. If the property does not exists, add the new property to this CIMInstance, otherwise update the value, qualifiers, overridingProperty, and OriginClass attributes.- Parameters:
pProperty- The property
-
updatePropertyValue
Updates the CIMProperty value. Updates the CIMProperty's values which matches the specified CIMProperty name. If the CIMProperty does not exists, a new property will be added.- Parameters:
pProperty- The property- Returns:
- true if the CIMProperty was succesfully updated, or false if a new property was added.
-
updatePropertyValue
Updates the properties of the current CIMInstance with the vector of CIMProperty objects.- Parameters:
pProperties- A property vector
-
main
-