org.sblim.wbem.cim

Class CIMQualifierType

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class CIMQualifierType
extends CIMElement
implements Cloneable, Comparable, Serializable

CIMQualifierType.java (C) Copyright IBM Corp. 2005, 2006 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Field Summary

Fields inherited from class org.sblim.wbem.cim.CIMElement

CLOSING_BRAKET, EMPTY, OPENING_BRAKET, iName

Constructor Summary

CIMQualifierType()
Default ctor.
CIMQualifierType(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
Object
clone()
int
compareTo(Object o)
boolean
equals(Object o)
CIMValue
getDefaultValue()
Gets the default for this CIMQualifierType.
Vector
getFlavor()
Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.
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.
boolean
hasScope(CIMScope pScope)
Determines if this CIMQualifierType has a CIMScope value associated with it.
int
hashCode()
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
String
toMOF()
Returns the MOF representation of this object.
String
toString()

Methods inherited from class org.sblim.wbem.cim.CIMElement

appendTab, assign, compareTo, equals, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString

Constructor Details

CIMQualifierType

public CIMQualifierType()
Default ctor.

CIMQualifierType

public CIMQualifierType(String pName)
Constructs a names qualifier.
Parameters:
pName - The name

Method Details

addFlavor

public void addFlavor(CIMFlavor pFlavor)
Adds the specified CIMFlavor to this CIMQualifierType object
Parameters:
pFlavor - The flavor

addScope

public void addScope(CIMScope pScope)
Adds the specified CIMScope to this CIMQualifierType object
Parameters:
pScope - The scope

clone

public Object clone()

compareTo

public int compareTo(Object o)
Overrides:
compareTo in interface CIMElement

equals

public boolean equals(Object o)
Overrides:
equals in interface CIMElement

getDefaultValue

public CIMValue getDefaultValue()
Gets the default for this CIMQualifierType.
Returns:
The default value

getFlavor

public Vector getFlavor()
Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.
Returns:
A vector of flavors

getScope

public 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

hashCode

public int hashCode()

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

toMOF

public String toMOF()
Returns the MOF representation of this object.
Returns:
The MOF representation

toString

public String toString()

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