|
||||||||||
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.CIMProperty
public class CIMProperty
Field Summary |
---|
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 | |
---|---|
CIMProperty()
Creates an CIMProperty object. |
|
CIMProperty(java.lang.String pName)
Creates a CIMProperty object with the specified name. |
|
CIMProperty(java.lang.String pName,
CIMValue pValue)
Creates a CIMProperty with the specified name and CIMValue. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.Object |
clone(boolean pIncludeQualifier,
boolean pIncludeClassOrigin)
Creates a replica of this object. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getOriginClass()
Returns the origin class for this object. |
java.lang.String |
getOverridingProperty()
Returns the name of the property that this CIMProperty overrides. |
int |
getSize()
Returns the size of this property. |
CIMDataType |
getType()
Returns the CIMDataType associated with this CIMProperty. |
CIMValue |
getValue()
Returns the CIMValue associated with this CIMProperty. |
boolean |
isKey()
Determines if this CIMProperty contains the Key qualifier. |
boolean |
isPropagated()
Determines if this CIMProperty is propagated. |
boolean |
isReference()
Determines if this CIMProperty is a reference data type. |
boolean |
removeQualifier(java.lang.String pName)
Removes the qualifier with the specified name from this CIMProperty. |
void |
setKey(boolean pKey)
Adds/removes the key qualifier |
void |
setOriginClass(java.lang.String pOriginClass)
Specifies the origin class for this CIMProperty. |
void |
setOverridingProperty(java.lang.String pNewOverridingProperty)
Specifies the overriding property for this CIMProperty. |
void |
setPropagated(boolean pValue)
Sets the propagated value to the specified value. |
CIMQualifier |
setQualifier(CIMQualifier pQualifier)
Updates the CIMQualifier value from the CIMProperty with the specified CIMQualifier. |
void |
setSize(int pSize)
Deprecated. the size of the property is bounded to the CIMDataType, which is unmutable. Applications are encourage to specify the CIMDataType with the appopiated size. |
void |
setType(CIMDataType pType)
Sets the CIMDataType for this CIMProperty. |
void |
setValue(CIMValue pValue)
Sets the value of this CIMProperty to the specified CIMProperty. |
java.lang.String |
toMOF()
Returns the MOF representation of this CIMObject. |
java.lang.String |
toString()
|
Methods inherited from class org.sblim.wbem.cim.CIMQualifiableElement |
---|
addQualifier, getQualifier, getQualifiers, setQualifiers |
Methods inherited from class org.sblim.wbem.cim.CIMElement |
---|
appendTab, assign, compareTo, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CIMProperty()
public CIMProperty(java.lang.String pName)
pName
- The property's namepublic CIMProperty(java.lang.String pName, CIMValue pValue)
pName
- The property's namepValue
- The property's valueMethod Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Object clone(boolean pIncludeQualifier, boolean pIncludeClassOrigin)
pIncludeQualifier
- if true
, the qualifiers of the CIMProperty
will be copiedpIncludeClassOrigin
- if true
, the classorigin information will be
copied
public boolean equals(java.lang.Object obj)
equals
in class CIMElement
public java.lang.String getOriginClass()
public java.lang.String getOverridingProperty()
public int getSize()
public CIMValue getValue()
public CIMDataType getType()
public boolean isKey()
true
if the property is a key propertypublic boolean isPropagated()
true
if the property is propagatedpublic boolean isReference()
true
if the property is a referencepublic boolean removeQualifier(java.lang.String pName)
removeQualifier
in class CIMQualifiableElement
pName
- The qualifier's name
true
if the qualifier was successfully removed,
otherwise returns false
.public void setKey(boolean pKey)
pKey
- if true
the key qualifier is added, otherwise
it's removedpublic void setOverridingProperty(java.lang.String pNewOverridingProperty)
pNewOverridingProperty
- The overriding propertypublic void setOriginClass(java.lang.String pOriginClass)
pOriginClass
- The origin classpublic void setPropagated(boolean pValue)
pValue
- The propageted valuepublic void setSize(int pSize)
pSize
- The sizepublic void setType(CIMDataType pType)
pType
- The type
java.lang.IllegalArgumentException
- if the current property already has a CIMValue assigned to it
and the new CIMDataType does not matches the value's data
type.public CIMQualifier setQualifier(CIMQualifier pQualifier) throws CIMException
pQualifier
- The qualifier
CIMException
- if a CIMQualifier with the same name does not exists.public void setValue(CIMValue pValue)
pValue
- The value
java.lang.IllegalArgumentException
- if the specified CIMValues's type does not match current
CIMDataTypepublic java.lang.String toMOF()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |