|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.brb.mgmt.MethodCallParameter
A parameter whose value is determined by calling a method the target object. The method to call must be a public method and must take zero parameters. The method's return value must be an Object or a subclass, not a primitive value.
Constructor Summary | |
---|---|
MethodCallParameter(java.lang.String methodName)
Creates a MethodCallParameter which invokes the given method on the target object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determine if this object is equal to the object passed in. |
java.lang.String |
getMethodName()
Returns the name of the method that getValue calls on the target
object. |
java.lang.String |
getUserDescription()
Returns the user's description of this parameter. |
java.lang.Object |
getValue(java.lang.Object[] tpFiringParams,
java.lang.Object target)
Gets the value that this parameter represents. |
java.lang.String |
getValueDescription()
Returns the text description of the value of this parameter. |
IParameter |
makeCopy()
Makes a copy of this object. |
void |
setUserDescription(java.lang.String newUserDescription)
Sets the user-specified description of this parameter. |
java.lang.String |
toShortenedXML()
Returns a shortened XML representation of this IParameter. |
java.lang.String |
toXML(boolean format,
java.lang.String indent)
Returns the XML representation of this IParameter. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodCallParameter(java.lang.String methodName)
methodName
- the name of the method to invoke on the target object
when getValue
is called. Must not be null.Method Detail |
public boolean equals(java.lang.Object obj)
public java.lang.String getMethodName()
getValue
calls on the target
object.
public java.lang.String getUserDescription()
IParameter
getUserDescription
in interface IParameter
public java.lang.Object getValue(java.lang.Object[] tpFiringParams, java.lang.Object target) throws BusinessRuleBeansException
IParameter
getValue
in interface IParameter
tpFiringParams
- the firing parameters passed from the trigger pointtarget
- the target object passed from the trigger point
BusinessRuleBeansException
public java.lang.String getValueDescription()
IParameter
getValueDescription
in interface IParameter
public IParameter makeCopy()
makeCopy
in interface IParameter
public void setUserDescription(java.lang.String newUserDescription)
IParameter
setUserDescription
in interface IParameter
newUserDescription
- the new description of this parameterpublic java.lang.String toXML(boolean format, java.lang.String indent)
IParameter
format
indicates whether the
XML should be formatted with indentation and new lines.
Parameter indent
specifies the number of
characters to indent the XML. This value is ignored
if false
is given for parameter
format
.
toXML
in interface IParameter
format
- boolean indicating whether XML should be formattedindent
- the String to use to indent the XML
public java.lang.String toShortenedXML()
IParameter
FOR IBM INTERNAL USE ONLY
toShortenedXML
in interface IParameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |