|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.cim.CIMElement
javax.cim.CIMParameter<E>
public class CIMParameter<E>
This class represents a CIM Parameter. A CIM Parameter is a schema item, thus it can only be part of a CIMMethod definition for a CIMClass. A parameter can be used to define an input, output or input/output parameter. A CIMParameter consists of a name, data type and qualifiers. CIMParameters do not have values - so you can not set a default value. CIM Parameters are defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004). To invoke a method, you would use CIMArgument.
CIMMethod
,
Serialized FormConstructor Summary | |
---|---|
CIMParameter(String name,
CIMDataType type,
CIMQualifier<?>[] qualifiers)
Constructs a CIMParameter object using the specified name, data type and qualifiers. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Compares this object against the specified object. |
CIMParameter<E> |
filter(boolean pIncludeQualifiers,
boolean pLocalOnly)
Returns a CIMParameter filtered as specified. |
CIMDataType |
getDataType()
Returns the CIMDataType for this CIM Element. |
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 parameter with the specified value. |
String |
toString()
Returns a String representation of the CIMParameter. |
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 CIMParameter(String name, CIMDataType type, CIMQualifier<?>[] qualifiers)
name
- name of this parametertype
- data type of this parameterqualifiers
- qualifiers for this parameterMethod Detail |
---|
public boolean equals(Object object)
object
- the object to compare.
public CIMParameter<E> filter(boolean pIncludeQualifiers, boolean pLocalOnly)
pIncludeQualifiers
- If true all qualifiers are returned; otherwise no qualifiers.pLocalOnly
- If true only the qualifiers that were not propagated will be
included.
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 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 |