|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifiableElement
org.sblim.wbem.cim.CIMObject
public abstract class CIMObject
Field Summary | |
---|---|
protected java.util.Vector |
iAllProperties
|
protected CIMObjectPath |
iObjectPath
|
Fields inherited from class org.sblim.wbem.cim.CIMQualifiableElement |
---|
iQualifiers |
Fields inherited from class org.sblim.wbem.cim.CIMElement |
---|
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET |
Constructor Summary | |
---|---|
protected |
CIMObject()
|
protected |
CIMObject(java.lang.String pName)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.sblim.wbem.cim.CIMQualifiableElement |
---|
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers |
Methods inherited from class org.sblim.wbem.cim.CIMElement |
---|
appendTab, assign, compareTo, equals, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CIMObjectPath iObjectPath
protected java.util.Vector iAllProperties
Constructor Detail |
---|
protected CIMObject()
protected CIMObject(java.lang.String pName)
Method Detail |
---|
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 name
java.lang.IllegalArgumentException
- if the property name is nullpublic java.util.Vector getKeys()
public abstract void setObjectPath(CIMObjectPath pObjectPath)
pObjectPath
- The object path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |