org.jboss.ant
Class JMX.Param

java.lang.Object
  extended byorg.jboss.ant.JMX.Param
Enclosing class:
JMX (src)

public static class JMX.Param
extends java.lang.Object

The class Param is used to represent a object by means of a string representation of its value and its type.


Constructor Summary
JMX.Param()
           
 
Method Summary
 java.lang.String getArg()
           
 java.lang.String getType()
           
 java.lang.Object getValue()
          The getValue method uses PropertyEditors to convert the string representation of the value to an object, which it returns.
 void setArg(java.lang.String arg)
          The setArg method sets the string representation of the parameters value.
 void setType(java.lang.String type)
          The setType method sets the fully qualified class name of the type represented by the param object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMX.Param

public JMX.Param()
Method Detail

setArg

public void setArg(java.lang.String arg)
The setArg method sets the string representation of the parameters value.

Parameters:
arg - a String value

getArg

public java.lang.String getArg()

setType

public void setType(java.lang.String type)
The setType method sets the fully qualified class name of the type represented by the param object.

Parameters:
type - a String value

getType

public java.lang.String getType()

getValue

public java.lang.Object getValue()
                          throws java.lang.Exception
The getValue method uses PropertyEditors to convert the string representation of the value to an object, which it returns. The PropertyEditor to use is determined by the type specified.

Returns:
an Object value
Throws:
java.lang.Exception - if an error occurs