|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifiableElement
org.sblim.wbem.cim.CIMMethod
This class is not thread safe.
Field Summary |
---|
Fields inherited from class org.sblim.wbem.cim.CIMQualifiableElement |
---|
iQualifiers |
Fields inherited from class org.sblim.wbem.cim.CIMElement |
---|
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET |
Constructor Summary | |
---|---|
CIMMethod()
Creates and instantiates a CIM method. |
|
CIMMethod(java.lang.String name)
Creates and instantiates a CIM Method with the specified name. |
Method Summary | |
---|---|
void |
addParameter(CIMParameter pParameter)
Adds a the specified parameter to the method. |
java.lang.Object |
clone()
|
java.lang.Object |
clone(boolean pIncludeQualifier,
boolean pIncludeClassOrigin)
Returns an object which is a copy of this CIM Method. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getOriginClass()
Get the name of the origin class for this method. |
java.lang.String |
getOverridingMethod()
Gets the name of the overriding method for this method. |
java.util.Vector |
getParameters()
Returns a list of CIMParameters for this method. |
int |
getSize()
Returns the size of the value returned by the method described by the CIMDataType. |
CIMDataType |
getType()
Returns the data type of the method. |
int |
hashCode()
|
boolean |
isPropagated()
Identify if the current method was propagated without modifications from the underlying subclass (respectively, Class). |
static void |
main(java.lang.String[] args)
|
void |
removeProperty(java.lang.String pParameterName)
Removes the specified property from the method. |
void |
setOriginClass(java.lang.String pOriginClass)
Specifies the name of the class where this method was defined. |
void |
setOverridingMethod(java.lang.String pOverridingMethod)
Set the name of the overriding method for this method. |
void |
setParameters(java.util.Vector pParameters)
Specify the new set of parameters for the method. |
void |
setPropagated(boolean pIsPropagated)
Specifies if the current method is propagated from a parent class. |
void |
setSize(int pSize)
Deprecated. the current method has been deprecated because the size of the data type is unmutable. To change the size of the return type, a new data type must be specified by invoking the setType method |
void |
setType(CIMDataType pType)
Sets the data type of the returned value for the method. |
java.lang.String |
toMOF()
Returns the MOF representation of the method. |
java.lang.String |
toString()
|
Methods inherited from class org.sblim.wbem.cim.CIMQualifiableElement |
---|
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers |
Methods inherited from class org.sblim.wbem.cim.CIMElement |
---|
appendTab, assign, compareTo, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CIMMethod()
public CIMMethod(java.lang.String name)
name
- the name for the method.Method Detail |
public java.lang.Object clone()
public java.lang.Object clone(boolean pIncludeQualifier, boolean pIncludeClassOrigin)
pIncludeQualifier
- a boolean that is true if the new object must contain
qualifier information from the current method, otherwise
false.pIncludeClassOrigin
- a boolean that is true if the new object must contain
classorigin information from the current method, otherwise
false.
public int hashCode()
public boolean equals(java.lang.Object o)
equals
in class CIMElement
public java.lang.String getOriginClass()
public java.lang.String getOverridingMethod()
public java.util.Vector getParameters()
public boolean isPropagated()
public int getSize()
public CIMDataType getType()
public void setOriginClass(java.lang.String pOriginClass)
pOriginClass
- name of the class where this method was defined.public void setOverridingMethod(java.lang.String pOverridingMethod)
pOverridingMethod
- the name of the overriding method. A null parameter value is
accepted.public void addParameter(CIMParameter pParameter)
pParameter
- specifies the parameter to be added.
java.lang.IllegalArgumentException
- if the parameter is nullpublic void setParameters(java.util.Vector pParameters)
pParameters
- specifies a vector containing the new set of parameterspublic void setPropagated(boolean pIsPropagated)
pIsPropagated
- public void removeProperty(java.lang.String pParameterName)
pParameterName
-
java.lang.IllegalArgumentException
- if the parameterName is null.public void setSize(int pSize)
pSize
- -
the size assigned to the method's return type
java.lang.IllegalArgumentException
- if the specified size is not a valid size.public void setType(CIMDataType pType)
pType
- specifie the return value data typepublic java.lang.String toMOF()
public java.lang.String toString()
public static void main(java.lang.String[] args)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |