|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.cim.CIMElement
javax.cim.CIMTypedElement
javax.cim.CIMMethod<E>
E - Type parameter.public class CIMMethod<E>
This class represents a CIM Method as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004).
| Constructor Summary | |
|---|---|
CIMMethod(String pName,
CIMDataType pType,
CIMQualifier<?>[] pQualis,
CIMParameter<?>[] pParams,
boolean pPropagated,
String pOriginClass)
Constructs a CIMMethod object with the specified
information. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object pObj)
Compares this object against the specified object. |
CIMMethod<E> |
filter(boolean pIncludeQualifiers,
boolean pIncludeClassOrigin)
Returns a CIMMethod filtered as specified. |
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 Method. |
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 method. |
boolean |
hasQualifierValue(String pName,
Object pValue)
Checks whether the specified qualifier is one of the qualifiers defined for this method with the specified value. |
boolean |
isPropagated()
Determines if this method is Propagated. |
String |
toString()
Returns a String representation of the
CIMMethod. |
| Methods inherited from class javax.cim.CIMTypedElement |
|---|
getDataType, hashCode |
| Methods inherited from class javax.cim.CIMElement |
|---|
compareTo, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public boolean equals(Object pObj)
true if and only if the argument is not null
and is a CIMMethod object that represents the same value as
this object.
equals in class CIMTypedElementpObj - The object to compare.
true if the objects are the same; false
otherwise.
public CIMMethod<E> filter(boolean pIncludeQualifiers,
boolean pIncludeClassOrigin)
CIMMethod filtered as specified.
pIncludeQualifiers - If true all qualifiers are returned; otherwise no
qualifiers.pIncludeClassOrigin - If true the class origin is included; otherwise
no class origin is present.
CIMMethod.
public CIMMethod<E> filter(boolean pIncludeQualifiers,
boolean pIncludeClassOrigin,
boolean pLocalOnly)
CIMMethod filtered as specified.
pIncludeQualifiers - If true all qualifiers are returned; otherwise no
qualifiers.pIncludeClassOrigin - If true the class origin is included; otherwise
no class origin is presentpLocalOnly - If true only the qualifiers defined on this class
are included; otherwise all qualifiers are included.
CIMMethod.public String getOriginClass()
public CIMParameter<?> getParameter(String pName)
pName - The name of the CIMParameter to retrieve.
CIMParameter matching the name specified; otherwise
null.public CIMParameter<?>[] getParameters()
public CIMQualifier<?> getQualifier(int pIndex)
throws ArrayIndexOutOfBoundsException
getQualifier in interface CIMQualifiedElementInterfacepIndex - The index of the qualifier.
pIndex.
ArrayIndexOutOfBoundsExceptionpublic CIMQualifier<?> getQualifier(String pName)
getQualifier in interface CIMQualifiedElementInterfacepName - The name of the qualifier to get.
null if the qualifier does not exist, otherwise
returns the reference to the qualifier.public int getQualifierCount()
getQualifierCount in interface CIMQualifiedElementInterfacepublic CIMQualifier<?>[] getQualifiers()
getQualifiers in interface CIMQualifiedElementInterfacepublic Object getQualifierValue(String pName)
getQualifierValue in interface CIMQualifiedElementInterfacepName - 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.public boolean hasQualifier(String pName)
hasQualifier in interface CIMQualifiedElementInterfacepName - The name of the qualifier.
true if the qualifier exists in this CIM method,
otherwise false.
public boolean hasQualifierValue(String pName,
Object pValue)
false if the qualifier is not applied or if the value does
not match.
hasQualifierValue in interface CIMQualifiedElementInterfacepName - The name of the qualifier.pValue - The value to be tested.
true if the qualifier exists and has this value,
otherwise false.public boolean isPropagated()
true if this method is propagated.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||