|
|||||||||
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.CIMQualifierType
Creates and instantiates a CIM qualifier type, which is a template for a CIM qualifier. This class is useful for checking that a characteristic is a valid CIM qualifier characteristic. Each CIMQualifier must have a CIMQualifierType. A CIM qualifier and its CIM qualifier type must have the same name.
Constructor Summary | |
CIMQualifierType()
Constructor creates a CIM qualifier type. |
|
CIMQualifierType(java.lang.String Name)
Constructor creates a new CIM qualifier type, using the name of the specified CIM qualifier type. |
Method Summary | |
void |
addFlavor(CIMFlavor newFlavor)
Adds the input flavor and verifies if there is any conflict. |
void |
addScope(CIMScope metaElement)
Expands the qualifier type's scope to include the input meta element. |
CIMValue |
getDefaultValue()
Returns the default values for this qualifier type |
java.util.Vector |
getFlavor()
Get the flavors of this qualifier type. |
java.util.Vector |
getScope()
Gives the scopes to which this qualifier type can be applied. |
int |
getSize()
Returns the size of this qualifier type |
CIMDataType |
getType()
Returns the CIM data type of this qualifier type |
boolean |
hasDefaultValue()
Checks if the default values are defined |
boolean |
hasFlavor(CIMFlavor flavor)
Checks if the qualifier's flavor includes the input flavor. |
boolean |
hasScope(CIMScope metaElement)
Checks if the qualifier type's scope includes the input meta element. |
boolean |
isArrayValue()
Checks if the default value is an array of values or not. |
void |
setDefaultValue(CIMValue value)
Sets the default value for this qualifier type to the specified CIM value |
void |
setSize(int aSize)
Sets the size of this qualifier type to the specified size |
void |
setType(CIMDataType type)
Sets the CIM data type to the specified type |
java.lang.String |
toMOF()
Returns a MOF representation of the CIMQualifierType. |
java.lang.String |
toString()
Returns a String representation of the CIMQualifierType This method is intended to be used only for debugging purposes, and the format of the returned string may vary between implementations. |
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 CIMQualifierType()
public CIMQualifierType(java.lang.String Name)
Name
- The name of an existing CIM qualifier type.Method Detail |
public java.util.Vector getScope()
public CIMDataType getType()
public int getSize()
public CIMValue getDefaultValue()
public void setType(CIMDataType type)
type
- the CIM data type of this qualifier typepublic void setSize(int aSize)
aSize
- the size of this qualifier typepublic void setDefaultValue(CIMValue value)
value
- list of default CIM values for this qualifier typepublic java.lang.String toString()
public java.lang.String toMOF()
public void addScope(CIMScope metaElement)
metaElement
- the meta element to be included in the scopepublic boolean hasScope(CIMScope metaElement)
metaElement
- the meta element which is checked for scope inclusion.public boolean hasFlavor(CIMFlavor flavor)
flavor
- the flavor element which is checked for
flavor inclusion.public void addFlavor(CIMFlavor newFlavor)
newFlavor
- The flavor to be addedpublic java.util.Vector getFlavor()
public boolean hasDefaultValue()
public boolean isArrayValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |