|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.cim.CIMElement
javax.cim.CIMMethod<E>
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 name,
CIMDataType type,
CIMQualifier<?>[] qualifiers,
CIMParameter<?>[] parameters,
boolean propagated,
String originClass)
Constructs a CIMMethod object with the specified information. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares this object against the specified object. |
CIMMethod<E> |
filter(boolean includeQualifiers,
boolean includeClassOrigin)
Returns a CIMMethod filtered as specified. |
CIMMethod<E> |
filter(boolean includeQualifiers,
boolean includeClassOrigin,
boolean localOnly)
Returns a CIMMethod filtered as specified. |
CIMDataType |
getDataType()
Returns the CIMDataType for this CIM Element. |
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 name)
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 name,
Object value)
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.CIMElement |
---|
compareTo, getName, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CIMMethod(String name, CIMDataType type, CIMQualifier<?>[] qualifiers, CIMParameter<?>[] parameters, boolean propagated, String originClass)
name
- The name of the method.type
- The data type of the method.qualifiers
- The method qualifiers.parameters
- The array of parameters for this method.propagated
- Is this method propagated from the superclass.originClass
- The class this method was defined or overridden in.Method Detail |
---|
public boolean equals(Object o)
o
- the object to compare.
public CIMMethod<E> filter(boolean includeQualifiers, boolean includeClassOrigin)
includeQualifiers
- If true all qualifiers are returned; otherwise no qualifiers.includeClassOrigin
- If true the class origin is included; otherwise no class
origin is present
public CIMMethod<E> filter(boolean includeQualifiers, boolean includeClassOrigin, boolean localOnly)
includeQualifiers
- If true all qualifiers are returned; otherwise no qualifiers.includeClassOrigin
- If true the class origin is included; otherwise no class
origin is presentlocalOnly
- If true only the qualifiers defined on this class are
included; otherwise all qualifiers are included.
public String getOriginClass()
public CIMParameter<?> getParameter(String pName)
pName
- The name of the CIMParameter to retrieve
public CIMParameter<?>[] getParameters()
public CIMQualifier<?> getQualifier(int pIndex)
getQualifier
in interface CIMQualifiedElementInterface
pIndex
- The index of the qualifier
public CIMQualifier<?> getQualifier(String pName)
getQualifier
in interface CIMQualifiedElementInterface
pName
- The name of the qualifier to get.
public int getQualifierCount()
getQualifierCount
in interface CIMQualifiedElementInterface
public CIMQualifier<?>[] getQualifiers()
getQualifiers
in interface CIMQualifiedElementInterface
public Object getQualifierValue(String name)
getQualifierValue
in interface CIMQualifiedElementInterface
name
- The name of the qualifier to get.
public boolean hasQualifier(String pName)
hasQualifier
in interface CIMQualifiedElementInterface
pName
- the name of the qualifier
public boolean hasQualifierValue(String name, Object value)
hasQualifierValue
in interface CIMQualifiedElementInterface
name
- the name of the qualifiervalue
- the value to be tested
public boolean isPropagated()
public String toString()
toString
in class CIMElement
public CIMDataType getDataType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |