org.sblim.wbem.cim
Class CIMQualifierType

java.lang.Object
  extended byorg.sblim.wbem.cim.CIMElement
      extended byorg.sblim.wbem.cim.CIMQualifierType
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, java.io.Serializable

public class CIMQualifierType
extends CIMElement
implements java.lang.Cloneable, java.lang.Comparable, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sblim.wbem.cim.CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
 
Constructor Summary
CIMQualifierType()
          Default ctor.
CIMQualifierType(java.lang.String pName)
          Constructs a names qualifier.
 
Method Summary
 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()
           
 
Methods inherited from class org.sblim.wbem.cim.CIMElement
appendTab, assign, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMQualifierType

public CIMQualifierType()
Default ctor.


CIMQualifierType

public CIMQualifierType(java.lang.String pName)
Constructs a names qualifier.

Parameters:
pName - The name
Method Detail

addFlavor

public void addFlavor(CIMFlavor pFlavor)
Adds the specified CIMFlavor to this CIMQualifierType object

Parameters:
pFlavor - The flavor
Throws:
java.lang.IllegalArgumentException - if a null flavor is specified.

addScope

public void addScope(CIMScope pScope)
Adds the specified CIMScope to this CIMQualifierType object

Parameters:
pScope - The scope
Throws:
java.lang.IllegalArgumentException - if a null scope is specified.

clone

public java.lang.Object clone()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class CIMElement

hashCode

public int hashCode()

getDefaultValue

public CIMValue getDefaultValue()
Gets the default for this CIMQualifierType.

Returns:
The default value

getFlavor

public java.util.Vector getFlavor()
Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.

Returns:
A vector of flavors

getScope

public java.util.Vector getScope()
Returns a Vector containing all the CIMScope assigned to this CIMQualifierType.

Returns:
A vector of scopes

getType

public CIMDataType getType()
Returns a CIMDataType associated to this CIMQualifierType.

Returns:
The type

hasDefaultValue

public boolean hasDefaultValue()
Determines if this CIMQualifierType has a default value associated with it.

Returns:
getDefaultValue()!=null

hasFlavor

public boolean hasFlavor(CIMFlavor pFlavor)
Determines if this CIMQualifierType has a CIMFlavor value associated with it.

Parameters:
pFlavor - The flavor
Returns:
true if the given flavor is part of this qualifier type

hasScope

public boolean hasScope(CIMScope pScope)
Determines if this CIMQualifierType has a CIMScope value associated with it.

Parameters:
pScope - The scope
Returns:
true if the given scope is part of this qualifier type

isArrayValue

public boolean isArrayValue()
Determines if this CIMQualifierType's type is an array.

Returns:
true if this qualifier's value is an array

setDefaultValue

public void setDefaultValue(CIMValue pValue)
Assigns the default value for this CIMDataType.

Parameters:
pValue - The default value

setType

public void setType(CIMDataType pType)
Set the value type of this qualifier

Parameters:
pType - The type
Throws:
java.lang.IllegalArgumentException - if current CIMDataType has an associated default value hows data type does not match the new specified data type.

toMOF

public java.lang.String toMOF()
Returns the MOF representation of this object.

Returns:
The MOF representation

toString

public java.lang.String toString()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class CIMElement


Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.