org.sblim.wbem.cim
public class CIMQualifierType extends CIMElement implements java.lang.Cloneable, java.lang.Comparable, java.io.Serializable
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
Constructor and Description |
---|
CIMQualifierType()
Default ctor.
|
CIMQualifierType(java.lang.String pName)
Constructs a names qualifier.
|
Modifier and Type | Method and Description |
---|---|
void |
addFlavor(CIMFlavor pFlavor)
Adds the specified CIMFlavor to this CIMQualifierType object
|
void |
addScope(CIMScope pScope)
Adds the specified CIMScope to this CIMQualifierType object
|
java.lang.Object |
clone() |
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
CIMValue |
getDefaultValue()
Gets the default for this CIMQualifierType.
|
java.util.Vector |
getFlavor()
Returns a Vector containing all the CIMFlavors assigned to this
CIMQualifierType.
|
java.util.Vector |
getScope()
Returns a Vector containing all the CIMScope assigned to this
CIMQualifierType.
|
CIMDataType |
getType()
Returns a CIMDataType associated to this CIMQualifierType.
|
boolean |
hasDefaultValue()
Determines if this CIMQualifierType has a default value associated with
it.
|
boolean |
hasFlavor(CIMFlavor pFlavor)
Determines if this CIMQualifierType has a CIMFlavor value associated with
it.
|
int |
hashCode() |
boolean |
hasScope(CIMScope pScope)
Determines if this CIMQualifierType has a CIMScope value associated with
it.
|
boolean |
isArrayValue()
Determines if this CIMQualifierType's type is an array.
|
void |
setDefaultValue(CIMValue pValue)
Assigns the default value for this CIMDataType.
|
void |
setType(CIMDataType pType)
Set the value type of this qualifier
|
java.lang.String |
toMOF()
Returns the MOF representation of this object.
|
java.lang.String |
toString() |
appendTab, assign, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
public CIMQualifierType()
public CIMQualifierType(java.lang.String pName)
pName
- The namepublic void addFlavor(CIMFlavor pFlavor)
pFlavor
- The flavorjava.lang.IllegalArgumentException
- if a null flavor is specified.public void addScope(CIMScope pScope)
pScope
- The scopejava.lang.IllegalArgumentException
- if a null scope is specified.public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class CIMElement
public int hashCode()
hashCode
in class java.lang.Object
public CIMValue getDefaultValue()
public java.util.Vector getFlavor()
public java.util.Vector getScope()
public CIMDataType getType()
public boolean hasDefaultValue()
public boolean hasFlavor(CIMFlavor pFlavor)
pFlavor
- The flavortrue
if the given flavor is part of this qualifier
typepublic boolean hasScope(CIMScope pScope)
pScope
- The scopetrue
if the given scope is part of this qualifier
typepublic boolean isArrayValue()
true
if this qualifier's value is an arraypublic void setDefaultValue(CIMValue pValue)
pValue
- The default valuepublic void setType(CIMDataType pType)
pType
- The typejava.lang.IllegalArgumentException
- if current CIMDataType has an associated default value hows
data type does not match the new specified data type.public java.lang.String toMOF()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
compareTo
in class CIMElement
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.