org.sblim.wbem.cim

Class CIMQualifier

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class CIMQualifier
extends CIMElement
implements Cloneable

CIMQualifier.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

CIMQualifier()
Default Ctor.
CIMQualifier(String pName)
Ctor.
CIMQualifier(String pName, CIMQualifierType pType)
Ctor.

Method Summary

void
addFlavor(CIMFlavor pFlavor)
Adds a flavor to this qualifier
Object
clone()
int
compareTo(Object o)
boolean
equals(Object o)
Vector
getFlavor()
CIMValue
getValue()
boolean
hasFlavor(CIMFlavor pFlavor)
Checks if this qualifier has a given flavor set
boolean
hasValue()
Checks if this qualifier has a value
int
hashCode()
boolean
isPropagated()
Checks if this qualifier is propagated
void
setDefaults(CIMQualifierType pQualifierType)
Sets the default value and the flavor from the given qualifier type
void
setPropagated(boolean pValue)
Sets the propagated value
void
setValue(CIMValue pValue)
Sets this qualifiers value
String
toMOF()
Gets the MOF representation of this qualifier
String
toString()

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

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

Constructor Details

CIMQualifier

public CIMQualifier()
Default Ctor.

CIMQualifier

public CIMQualifier(String pName)
Ctor. Constructs a named qualifier.
Parameters:
pName - The qualifier's name

CIMQualifier

public CIMQualifier(String pName,
                    CIMQualifierType pType)
Ctor. Constructs a named and typed qualifier.
Parameters:
pName - The qualifier's name
pType - The qualifier's type

Method Details

addFlavor

public void addFlavor(CIMFlavor pFlavor)
Adds a flavor to this qualifier
Parameters:
pFlavor - The flavor

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

getFlavor

public Vector getFlavor()

getValue

public CIMValue getValue()

hasFlavor

public boolean hasFlavor(CIMFlavor pFlavor)
Checks if this qualifier has a given flavor set
Parameters:
pFlavor - The flavor
Returns:
true if the flavor is set, false otherwise

hasValue

public boolean hasValue()
Checks if this qualifier has a value
Returns:
getValue()!=null

hashCode

public int hashCode()

isPropagated

public boolean isPropagated()
Checks if this qualifier is propagated
Returns:
true if this qualifier is propagated, false otherwise

setDefaults

public void setDefaults(CIMQualifierType pQualifierType)
Sets the default value and the flavor from the given qualifier type
Parameters:
pQualifierType - The qualifier type

setPropagated

public void setPropagated(boolean pValue)
Sets the propagated value
Parameters:
pValue - true if this qualifier is propagated, false otherwise

setValue

public void setValue(CIMValue pValue)
Sets this qualifiers value
Parameters:
pValue - The value

toMOF

public String toMOF()
Gets the MOF representation of this qualifier
Returns:
The MOF representation

toString

public String toString()

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