org.sblim.wbem.cim
public class CIMProperty extends CIMQualifiableElement implements java.lang.Cloneable, java.io.Serializable
iQualifiers
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
addQualifier, getQualifier, getQualifiers, setQualifiers
appendTab, assign, compareTo, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
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 valuepublic 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
copiedpublic 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 nametrue
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 typejava.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 qualifierCIMException
- if a CIMQualifier with the same name does not exists.public void setValue(CIMValue pValue)
pValue
- The valuejava.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
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.