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 TypeMethodDescriptionboolean
CIMQualifier
<?> getQualifier
(int pIndex) Get a qualifier by index.CIMQualifier
<?> getQualifier
(String pName) Gets a qualifier by name.int
Get 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.int
hashCode()
boolean
hasQualifier
(String pName) Checks whether the specified qualifier is one of the qualifiers in this CIM element.boolean
hasQualifierValue
(String pName, Object pValue) Checks whether the specified qualifier is one of the qualifiers defined for this property with the specified value.boolean
Returns true if the "EmbeddedObject" qualifier with true value presents.boolean
isKeyed()
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:CIMQualifiedElementInterface
Get a qualifier by index.- Specified by:
getQualifier
in interfaceCIMQualifiedElementInterface
- Parameters:
pIndex
- The index of the qualifier.- Returns:
- The Qualifier at index
pIndex
. - See Also:
-
getQualifier
Description copied from interface:CIMQualifiedElementInterface
Gets a qualifier by name.- Specified by:
getQualifier
in interfaceCIMQualifiedElementInterface
- Parameters:
pName
- The name of the qualifier to get.- Returns:
null
if the qualifier does not exist, otherwise returns the reference to the qualifier.- See Also:
-
getQualifierCount
public int getQualifierCount()Description copied from interface:CIMQualifiedElementInterface
Get the number of qualifiers defined for this CIM Element.- Specified by:
getQualifierCount
in interfaceCIMQualifiedElementInterface
- Returns:
- The number of qualifiers.
- See Also:
-
getQualifierValue
Description copied from interface:CIMQualifiedElementInterface
Gets a qualifier value by name.- Specified by:
getQualifierValue
in interfaceCIMQualifiedElementInterface
- Parameters:
pName
- The name of the qualifier to get.- Returns:
null
if the qualifier does not exist or value isnull
, otherwise returns the reference to the qualifier.- See Also:
-
getQualifiers
Description copied from interface:CIMQualifiedElementInterface
Returns the list of qualifiers for this class.- Specified by:
getQualifiers
in 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:CIMQualifiedElementInterface
Checks whether the specified qualifier is one of the qualifiers in this CIM element.- Specified by:
hasQualifier
in interfaceCIMQualifiedElementInterface
- Parameters:
pName
- The name of the qualifier.- Returns:
true
if the qualifier exists in this CIM element, otherwisefalse
.- See Also:
-
hasQualifierValue
Description copied from interface:CIMQualifiedElementInterface
Checks whether the specified qualifier is one of the qualifiers defined for this property with the specified value. This method will returnfalse
if the qualifier is not applied or if the value does not match.- Specified by:
hasQualifierValue
in interfaceCIMQualifiedElementInterface
- Parameters:
pName
- The name of the qualifier.pValue
- The value to be tested.- Returns:
true
if the qualifier exists and has the value, otherwisefalse
.- See Also:
-