org.sblim.wbem.cim
Class CIMInstance
- Comparable, Serializable
public class CIMInstance
implements Serializable
CIMInstance.java
(C) Copyright IBM Corp. 2005, 2006
THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE
("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
You can obtain a current copy of the Common Public License from
http://www.opensource.org/licenses/cpl1.0.php
addProperty , getAllProperties , getKeys , getProperties , getProperty , getProperty , getProperty , removeProperty , setObjectPath , setProperties , setProperty |
iAlias
protected String iAlias
CIMInstance
public CIMInstance()
Constructs an object of a CIMInstance.
CIMInstance
public CIMInstance(CIMObjectPath pObjectPath)
Constructs an object of a CIMInstance
clone
public Object clone()
getAlias
public String getAlias()
Returns the alias name for the instance
- string which represents the alias for the instance, or null if it
hasn't beed specified
getClassName
public String getClassName()
Returns the class name of the instance.
- string which defines the class name for the instance.
getKeyValuePairs
public Vector getKeyValuePairs()
Returns a list of key properties in this CIMInstance.
- a vector which provides direct access to the key properties of
this instance.
getName
public String getName()
instances don't have names. However current implementation
provides access to the class name of the instance.
Returns the class name of this instance.
- getName in interface CIMElement
getObjectPath
public CIMObjectPath 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.
hashCode
public int hashCode()
main
public static void main(String[] args)
setAlias
public void setAlias(String pAliasName)
Specifies the alias for this instance.
setClassName
public void setClassName(String pClassname)
Specifies the classname for this CIMInstance.
pClassname
- The class name
setName
public void setName(String pName)
Specifies the name for this CIMInstance.
- setName in interface CIMElement
setObjectPath
public void setObjectPath(CIMObjectPath pObjectPath)
Specifies the CIMObjectPath for this CIMInstance.
- setObjectPath in interface CIMObject
pObjectPath
- The object path
toMOF
public String toMOF()
Returns the MOF representation of this CIMInstance.
toString
public String toString()
updateProperty
public void updateProperty(CIMProperty pProperty)
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.
updatePropertyValue
public void updatePropertyValue(Vector pProperties)
Updates the properties of the current CIMInstance with the vector of
CIMProperty objects.
pProperties
- A property vector
updatePropertyValue
public boolean updatePropertyValue(CIMProperty pProperty)
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.
- true if the CIMProperty was succesfully updated, or false if a
new property was added.
Copyright © 2005, 2007 IBM Corporation. All Rights Reserved.