|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.wbem.cim.CIMElement | +--com.sun.wbem.cim.CIMProperty
Creates and instantiates a CIM property, a name/value pair used to characterize instances of a class. Use this API to create a new attribute to describe managed objects. For example, after a printer upgrade to handle duplex (two-sided) printing, you could use this interface to create a CIM property called duplex. The CIMProperty class inherits the property name from its parent class (CIMProperty extends CIMElement). A CIM Property is defined by its name and origin class. Two or more properties can have the same name, but the origin class uniquely identifies the property.
Constructor Summary | |
CIMProperty()
Class constructor creates a new instance of a CIM property |
|
CIMProperty(java.lang.String name)
Class constructor uses an existing CIM property as a template for creating a new instance of a CIM property. |
|
CIMProperty(java.lang.String n,
CIMValue v)
Class constructor uses an existing CIM property as a template for creating a new instance of a CIM property. |
Method Summary | |
void |
addQualifier(CIMQualifier cq)
Adds the specified CIM qualifier to this property. |
java.lang.Object |
clone()
Makes a copy of this property, including property name, identifier, type, origin class, size, value, and qualifiers. |
java.lang.Object |
clone(boolean includeQualifier,
boolean includeClassOrigin)
Makes a copy of this property, including property name, identifier, type, origin class, size, value, and qualifiers. |
java.lang.String |
getOriginClass()
Returns the class in which this property was defined. |
java.lang.String |
getOverridingProperty()
Gets the overriding property |
CIMQualifier |
getQualifier(java.lang.String name)
Returns the specified CIM qualifier, an object that modifies this property. |
java.util.Vector |
getQualifiers()
Returns the list of CIM qualifiers for this property |
int |
getSize()
Returns the size of this property object. |
CIMDataType |
getType()
Gets the CIM data type of this property |
CIMValue |
getValue()
Gets the value for this property |
boolean |
isKey()
Convenience method for getting a qualifier name key. |
boolean |
isReference()
Identifies whether or not this CIM Property data type is a reference to an instance (link to another CIM object). |
boolean |
removeQualifier(java.lang.String name)
Removes the specified CIM qualifier from the property. |
void |
setOriginClass(java.lang.String originClass)
Sets the class in which this property was defined. |
void |
setOverridingProperty(java.lang.String name)
Specifies this property as an overriding property |
CIMQualifier |
setQualifier(CIMQualifier cq)
Sets a qualifier for this property |
void |
setQualifiers(java.util.Vector q)
Sets the list of CIM qualifiers for this property. |
void |
setSize(int aSize)
Sets the size of this property to the integer argument |
void |
setType(CIMDataType aType)
Sets the data type of this property to the specified CIM data type. |
void |
setValue(CIMValue aValue)
Sets the value for this property. |
java.lang.String |
toMOF()
Returns a MOF representation of the CIMProperty. |
java.lang.String |
toString()
Returns a String representation of the CIMProperty. |
java.lang.String |
toXml()
Returns an XML representation of this CIM property. |
Methods inherited from class com.sun.wbem.cim.CIMElement |
assign,
equals,
getName,
lessThan,
setName |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public CIMProperty()
public CIMProperty(java.lang.String name)
name
- name of an existing CIM propertypublic CIMProperty(java.lang.String n, CIMValue v)
n
- name of an existing CIM propertyv
- CIM value of an existing CIM propertyMethod Detail |
public java.util.Vector getQualifiers()
public void setQualifiers(java.util.Vector q)
q
- The vector representing the list of CIM qualifierspublic java.lang.String getOriginClass()
public void setOriginClass(java.lang.String originClass)
originClass
- The name of the class in which this property is
defined.public void setValue(CIMValue aValue)
aValue
- the CIM value for this propertypublic CIMValue getValue()
public void setType(CIMDataType aType)
aType
- the CIM data type of this propertypublic CIMDataType getType()
public int getSize()
public void setSize(int aSize)
aSize
- the integer size of this property objectpublic void setOverridingProperty(java.lang.String name)
name
- the name of the propertypublic java.lang.String getOverridingProperty()
public boolean isReference()
public CIMQualifier getQualifier(java.lang.String name)
name
- The name of the qualifier to get.public CIMQualifier setQualifier(CIMQualifier cq) throws CIMException
cq
- The qualifier to setpublic void addQualifier(CIMQualifier cq) throws CIMException
cq
- The qualifier to addpublic boolean removeQualifier(java.lang.String name)
name
- The name of the qualifier to remove.public java.lang.String toString()
public java.lang.String toMOF()
public java.lang.Object clone()
public java.lang.Object clone(boolean includeQualifier, boolean includeClassOrigin)
includeQualifier
- qualifiers are only included if true.includeClassOrigin
- classOrigin is only included if true.public boolean isKey()
public java.lang.String toXml()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |