org.sblim.wbem.cim
public abstract class CIMObject extends CIMQualifiableElement
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
iAllProperties |
protected CIMObjectPath |
iObjectPath |
iQualifiers
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
Modifier | Constructor and Description |
---|---|
protected |
CIMObject() |
protected |
CIMObject(java.lang.String pName) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(CIMProperty pProperty)
Adds a property to the specified object.
|
java.util.Vector |
getAllProperties()
Returns a list of CIMProperties for this CIMObject.
|
java.util.Vector |
getKeys()
Returns a list of key properties in this CIMObject.
|
java.util.Vector |
getProperties()
Returns a list of CIMProperties for this CIMObject.
|
protected CIMProperty |
getProperty(CIMProperty pProperty) |
CIMProperty |
getProperty(java.lang.String pPropertyName)
Gets the specified CIMProperty, if the property exists.
|
CIMProperty |
getProperty(java.lang.String pName,
java.lang.String pOriginClass)
Gets the CIMProperty from the current CIMElement, if the property exits.
|
CIMProperty |
removeProperty(java.lang.String propertyName)
Remove the specified property from the object.
|
abstract void |
setObjectPath(CIMObjectPath pObjectPath)
Specifies the CIMObjectPath for this CIM Object.
|
void |
setProperties(java.util.Vector pProperties)
Replace the current properties from the object and add the new set of
properties defined by the argument.
|
CIMProperty |
setProperty(java.lang.String pPropertyName,
CIMValue pValue)
Sets the value for the property, if the property already exists,
otherwise create a new property with the specified name, and sets assigns
the especified value to it.
|
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers
appendTab, assign, compareTo, equals, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
protected CIMObjectPath iObjectPath
protected java.util.Vector iAllProperties
protected CIMObject()
protected CIMObject(java.lang.String pName)
public CIMProperty getProperty(java.lang.String pPropertyName)
pPropertyName
- the name of the CIMProperty, with the following format
"propName" or "propName.orignClass".public CIMProperty getProperty(java.lang.String pName, java.lang.String pOriginClass)
pName
- a string which specifies the property name.pOriginClass
- a String which specifies the originClass.protected CIMProperty getProperty(CIMProperty pProperty)
public java.util.Vector getProperties()
public java.util.Vector getAllProperties()
public void addProperty(CIMProperty pProperty)
pProperty
- property to be addedpublic void setProperties(java.util.Vector pProperties)
pProperties
- public CIMProperty setProperty(java.lang.String pPropertyName, CIMValue pValue)
pPropertyName
- A string specifing the property name.pValue
- CIMValue that will be assigned to the property. It may be
null.java.lang.IllegalArgumentException
- if the propertyName is nullpublic CIMProperty removeProperty(java.lang.String propertyName)
propertyName
- The property's namejava.lang.IllegalArgumentException
- if the property name is nullpublic java.util.Vector getKeys()
public abstract void setObjectPath(CIMObjectPath pObjectPath)
pObjectPath
- The object pathCopyright © 2005, 2009 IBM Corporation. All Rights Reserved.