Package javax.cim
Class CIMQualifier<E>
- java.lang.Object
-
- javax.cim.CIMElement
-
- javax.cim.CIMTypedElement
-
- javax.cim.CIMValuedElement<E>
-
- javax.cim.CIMQualifier<E>
-
- Type Parameters:
E- Type parameter.
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CIMElement>
public class CIMQualifier<E> extends CIMValuedElement<E>
This class represents a CIM qualifier as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004). A qualifier provides additional information about classes, associations, methods, parameters, properties, and/or references. ACIMQualifiermust have a CIM Qualifier Type. A qualifier and its qualifier type must have the same name and data type. CIM Qualifiers can only be applied to elements that are allowed by the scope defined by the CIM Qualifier Type.- See Also:
CIMQualifierType, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CIMQualifier(java.lang.String pName, CIMDataType pType, E pValue, int pFlavor)Constructs a CIM qualifier with the specified name, type, value, and flavors.CIMQualifier(java.lang.String pName, CIMDataType pType, E pValue, int pFlavor, boolean pIsPropagated)Constructs a CIM qualifier with the specified name, type, value, and flavors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object pObj)Compares thisCIMQualifieragainst the specifiedCIMQualifier.intgetFlavor()Returns the CIM flavors for this CIM qualifier.booleanisPropagated()Determines if this qualifier is propagated.java.lang.StringtoString()Returns aStringrepresentation of theCIMQualifier.-
Methods inherited from class javax.cim.CIMValuedElement
getValue, hashCode
-
Methods inherited from class javax.cim.CIMTypedElement
getDataType
-
Methods inherited from class javax.cim.CIMElement
compareTo, getName
-
-
-
-
Constructor Detail
-
CIMQualifier
public CIMQualifier(java.lang.String pName, CIMDataType pType, E pValue, int pFlavor)Constructs a CIM qualifier with the specified name, type, value, and flavors.- Parameters:
pName- The name of the qualifier.pType- The data type of the qualifier.pValue- The value of the qualifier.pFlavor- A list of override permissions. Flavors can be overridden from the Qualifier Type definition to either restrict the subclassing of a qualifier or to allow it. For the list of CIM Flavors see theCIMFlavorclass.- See Also:
CIMFlavor
-
CIMQualifier
public CIMQualifier(java.lang.String pName, CIMDataType pType, E pValue, int pFlavor, boolean pIsPropagated)Constructs a CIM qualifier with the specified name, type, value, and flavors.- Parameters:
pName- The name of the qualifier.pType- The data type of the qualifier.pValue- The value of the qualifier.pFlavor- A list of override permissions. Flavors can be overridden from the Qualifier Type definition to either restrict the subclassing of a qualifier or to allow it. For the list of CIM Flavors see theCIMFlavorclass.pIsPropagated-trueif the qualifier was propagated;falseotherwise.- See Also:
CIMFlavor
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object pObj)
Compares thisCIMQualifieragainst the specifiedCIMQualifier. The result istrueif and only if the argument is notnulland is aCIMQualifierthat represents the same name, type and value as thisCIMQualifier.- Overrides:
equalsin classCIMValuedElement<E>- Parameters:
pObj- The object to compare.- Returns:
trueif the input qualifier is equal, otherwisefalse.
-
getFlavor
public int getFlavor()
Returns the CIM flavors for this CIM qualifier.- Returns:
- A
BitSetof CIM flavors in this CIM qualifier.
-
isPropagated
public boolean isPropagated()
Determines if this qualifier is propagated. If the qualifier was inherited, this value will betrue. If the qualifier was applied to the element directly, this value will befalse.- Returns:
trueif this property is propagated;falseotherwise.
-
toString
public java.lang.String toString()
Returns aStringrepresentation of theCIMQualifier. This method is intended to be used only for debugging purposes, and the format of the returned string may vary between implementations. The returned string may be empty but may not benull.- Overrides:
toStringin classCIMValuedElement<E>- Returns:
- A string representation of this qualifier.
-
-