Class CIMQualifiedElementInterfaceImpl
java.lang.Object
org.sblim.cimclient.internal.cim.CIMQualifiedElementInterfaceImpl
- All Implemented Interfaces:
Serializable, CIMQualifiedElementInterface
public class CIMQualifiedElementInterfaceImpl
extends Object
implements CIMQualifiedElementInterface, Serializable
Class CIMQualifiedElementInterfaceImpl is responsible for implementing the
functionality of javax.cim.CIMQualifiedElementInterface
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCIMQualifiedElementInterfaceImpl(CIMQualifier<?>[] pQualifiers) Ctor.CIMQualifiedElementInterfaceImpl(CIMQualifier<?>[] pQualifiers, boolean pIsKeyed) Ctor.CIMQualifiedElementInterfaceImpl(CIMQualifier<?>[] pQualifiers, boolean pIsKeyed, boolean pKeepEmbObj) Ctor.CIMQualifiedElementInterfaceImpl(CIMQualifier<?>[] pQualifiers, boolean pIsKeyed, boolean pKeepEmbObj, boolean pIsAssociation) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCIMQualifier<?> getQualifier(int pIndex) Get a qualifier by index.CIMQualifier<?> getQualifier(String pName) Gets a qualifier by name.intGet the number of qualifiers defined for this CIM Element.CIMQualifier<?>[]Returns the list of qualifiers for this class.CIMQualifier<?>[]getQualifiers(boolean pLocalOnly) getQualifiers - helps filtering based on the propagated flag.getQualifierValue(String pName) Gets a qualifier value by name.inthashCode()booleanhasQualifier(String pName) Checks whether the specified qualifier is one of the qualifiers in this CIM element.booleanhasQualifierValue(String pName, Object pValue) Checks whether the specified qualifier is one of the qualifiers defined for this property with the specified value.booleanReturns true if the "EmbeddedObject" qualifier with true value presents.booleanisKeyed()Returns true if the "key" Qualifier with true value presents.
-
Constructor Details
-
CIMQualifiedElementInterfaceImpl
Ctor. This constructor doesn't modify the passed qualifier list.- Parameters:
pQualifiers-
-
CIMQualifiedElementInterfaceImpl
Ctor. This constructor modifies the qualifier list according to the pIsKeyed flag.- Parameters:
pQualifiers-pIsKeyed-
-
CIMQualifiedElementInterfaceImpl
public CIMQualifiedElementInterfaceImpl(CIMQualifier<?>[] pQualifiers, boolean pIsKeyed, boolean pKeepEmbObj) Ctor. This constructor is able to not remove the EmbeddedObject qualifier. It is useful for the XML parser to parse EmbeddedObject qualified elements without values.- Parameters:
pQualifiers-pIsKeyed-pKeepEmbObj-
-
CIMQualifiedElementInterfaceImpl
public CIMQualifiedElementInterfaceImpl(CIMQualifier<?>[] pQualifiers, boolean pIsKeyed, boolean pKeepEmbObj, boolean pIsAssociation) Ctor. This constructor is able to not remove the EmbeddedObject qualifier. It is useful for the XML parser to parse EmbeddedObject qualified elements without values. It also adds or removes the Association qualifier depending on the value of pIsAssociation.- Parameters:
pQualifiers-pIsKeyed-pKeepEmbObj-pIsAssociation-
-
-
Method Details
-
equals
-
hashCode
-
isKeyed
public boolean isKeyed()Returns true if the "key" Qualifier with true value presents.- Returns:
- true/false
-
isEmbeddedObject
public boolean isEmbeddedObject()Returns true if the "EmbeddedObject" qualifier with true value presents.- Returns:
- true/false
-
getQualifier
Description copied from interface:CIMQualifiedElementInterfaceGet a qualifier by index.- Specified by:
getQualifierin interfaceCIMQualifiedElementInterface- Parameters:
pIndex- The index of the qualifier.- Returns:
- The Qualifier at index
pIndex. - See Also:
-
getQualifier
Description copied from interface:CIMQualifiedElementInterfaceGets a qualifier by name.- Specified by:
getQualifierin interfaceCIMQualifiedElementInterface- Parameters:
pName- The name of the qualifier to get.- Returns:
nullif the qualifier does not exist, otherwise returns the reference to the qualifier.- See Also:
-
getQualifierCount
public int getQualifierCount()Description copied from interface:CIMQualifiedElementInterfaceGet the number of qualifiers defined for this CIM Element.- Specified by:
getQualifierCountin interfaceCIMQualifiedElementInterface- Returns:
- The number of qualifiers.
- See Also:
-
getQualifierValue
Description copied from interface:CIMQualifiedElementInterfaceGets a qualifier value by name.- Specified by:
getQualifierValuein interfaceCIMQualifiedElementInterface- Parameters:
pName- The name of the qualifier to get.- Returns:
nullif the qualifier does not exist or value isnull, otherwise returns the reference to the qualifier.- See Also:
-
getQualifiers
Description copied from interface:CIMQualifiedElementInterfaceReturns the list of qualifiers for this class.- Specified by:
getQualifiersin interfaceCIMQualifiedElementInterface- Returns:
- Qualifiers for this class.
- See Also:
-
getQualifiers
getQualifiers - helps filtering based on the propagated flag.- Parameters:
pLocalOnly-- Returns:
- CIMQualifier[]
-
hasQualifier
Description copied from interface:CIMQualifiedElementInterfaceChecks whether the specified qualifier is one of the qualifiers in this CIM element.- Specified by:
hasQualifierin interfaceCIMQualifiedElementInterface- Parameters:
pName- The name of the qualifier.- Returns:
trueif the qualifier exists in this CIM element, otherwisefalse.- See Also:
-
hasQualifierValue
Description copied from interface:CIMQualifiedElementInterfaceChecks whether the specified qualifier is one of the qualifiers defined for this property with the specified value. This method will returnfalseif the qualifier is not applied or if the value does not match.- Specified by:
hasQualifierValuein interfaceCIMQualifiedElementInterface- Parameters:
pName- The name of the qualifier.pValue- The value to be tested.- Returns:
trueif the qualifier exists and has the value, otherwisefalse.- See Also:
-