javax.cim
E
- : Type Parameterpublic class CIMMethod<E> extends CIMTypedElement implements CIMQualifiedElementInterface
Constructor and Description |
---|
CIMMethod(String pName,
CIMDataType pType,
CIMQualifier<?>[] pQualis,
CIMParameter<?>[] pParams,
boolean pPropagated,
String pOriginClass)
Constructs a
CIMMethod object with the specified
information. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object pObj)
Compares this object against the specified object.
|
CIMMethod<E> |
filter(boolean pIncludeQualifiers,
boolean pIncludeClassOrigin)
filter
|
CIMMethod<E> |
filter(boolean pIncludeQualifiers,
boolean pIncludeClassOrigin,
boolean pLocalOnly)
Returns a CIMMethod filtered as specified.
|
String |
getOriginClass()
Returns the class name in which this method was defined or overridden.
|
CIMParameter<?> |
getParameter(String pName)
Get the parameter that matches the specified name.
|
CIMParameter<?>[] |
getParameters()
Returns an array of the parameters for this method.
|
CIMQualifier<?> |
getQualifier(int pIndex)
Get a qualifier by index.
|
CIMQualifier<?> |
getQualifier(String pName)
Gets a qualifier by name.
|
int |
getQualifierCount()
Get the number of qualifiers defined for this CIM Element.
|
CIMQualifier<?>[] |
getQualifiers()
Returns the list of qualifiers for this class.
|
Object |
getQualifierValue(String pName)
Gets a qualifier value by name.
|
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 |
isPropagated()
isPropagated
|
String |
toString()
Returns a
String representation of the
CIMMethod . |
getDataType
compareTo, getName, hashCode
public CIMMethod(String pName, CIMDataType pType, CIMQualifier<?>[] pQualis, CIMParameter<?>[] pParams, boolean pPropagated, String pOriginClass)
CIMMethod
object with the specified
information.pName
- - The name of the method.pType
- - The data type of the method.pQualis
- - The method qualifiers.pParams
- - The array of parameters for this method.pPropagated
- - Is this method propagated from the superclass.pOriginClass
- - The class this method was defined or overridden in.public boolean equals(Object pObj)
CIMTypedElement
true
if and only if the argument is not null
and is a CIMValuedObject
that represents the same name, type
and value as this object.equals
in class CIMTypedElement
pObj
- - The object to compare with.true
if the objects are the same; false
otherwise.CIMTypedElement.equals(java.lang.Object)
public CIMMethod<E> filter(boolean pIncludeQualifiers, boolean pIncludeClassOrigin)
pIncludeQualifiers
- If true all qualifiers are returned; otherwise no qualifiers.pIncludeClassOrigin
- If true the class origin is included; otherwise no class
origin is present.public CIMMethod<E> filter(boolean pIncludeQualifiers, boolean pIncludeClassOrigin, boolean pLocalOnly)
pIncludeQualifiers
- If true all qualifiers are returned; otherwise no qualifiers.pIncludeClassOrigin
- If true the class origin is included; otherwise no class
origin is presentpLocalOnly
- public boolean isPropagated()
public String getOriginClass()
public CIMParameter<?> getParameter(String pName)
pName
- The name of the CIMParameter to retrievepublic CIMParameter<?>[] getParameters()
public CIMQualifier<?> getQualifier(int pIndex)
getQualifier
in interface CIMQualifiedElementInterface
pIndex
- - The index of the qualifierpublic CIMQualifier<?> getQualifier(String pName)
getQualifier
in interface CIMQualifiedElementInterface
pName
- - The name of the qualifier to get.null
if the qualifier does not exist, otherwise
returns the reference to the qualifier.public Object getQualifierValue(String pName)
CIMQualifiedElementInterface
getQualifierValue
in interface CIMQualifiedElementInterface
pName
- - The name of the qualifier to get.null
if the qualifier does not exist or value is
null
, otherwise returns the reference to the
qualifier.CIMQualifiedElementInterface.getQualifierValue(java.lang.String)
public int getQualifierCount()
getQualifierCount
in interface CIMQualifiedElementInterface
public CIMQualifier<?>[] getQualifiers()
getQualifiers
in interface CIMQualifiedElementInterface
public boolean hasQualifier(String pName)
hasQualifier
in interface CIMQualifiedElementInterface
pName
- - The name of the qualifier.true
if the qualifier exists in this CIM element,
otherwise false
.public boolean hasQualifierValue(String pName, Object pValue)
CIMQualifiedElementInterface
hasQualifierValue
in interface CIMQualifiedElementInterface
pName
- - the name of the qualifierpValue
- - the value to be testedtrue
if the qualifier exists and has the value,
otherwise false
.CIMQualifiedElementInterface.hasQualifierValue(java.lang.String,
java.lang.Object)
public String toString()
String
representation of the
CIMMethod
. 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 be
null
.toString
in class CIMTypedElement
CIMElement.toString()
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.