public class CIMMethod extends CIMQualifiableElement implements java.lang.Cloneable
iQualifiers
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
Constructor and Description |
---|
CIMMethod()
Creates and instantiates a CIM method.
|
CIMMethod(java.lang.String name)
Creates and instantiates a CIM Method with the specified name.
|
Modifier and Type | Method and Description |
---|---|
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() |
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers
appendTab, assign, compareTo, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
public CIMMethod()
public CIMMethod(java.lang.String name)
name
- the name for the method.public java.lang.Object clone()
clone
in class java.lang.Object
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()
hashCode
in class java.lang.Object
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 typejava.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()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.