org.excel4j.reflect
Class ReflectArgumentAdaptor

java.lang.Object
  extended by org.excel4j.reflect.ReflectArgumentAdaptor
All Implemented Interfaces:
Argument

public class ReflectArgumentAdaptor
extends java.lang.Object
implements Argument

Used to convert from one argument to another.


Constructor Summary
ReflectArgumentAdaptor(XLObjectConverter argMapper, java.lang.Class c, java.lang.String name, java.lang.String helpText)
          Creates a new ReflectArgumentAdaptor object.
 
Method Summary
 java.lang.Object convert(XLObject obj)
          Convert the argument into the expected type.
 java.lang.String getHelpText()
          Get the argument help.
 java.lang.String getName()
          Get the argument name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectArgumentAdaptor

public ReflectArgumentAdaptor(XLObjectConverter argMapper,
                              java.lang.Class c,
                              java.lang.String name,
                              java.lang.String helpText)
Creates a new ReflectArgumentAdaptor object.

Parameters:
c. -
name. -
Method Detail

convert

public java.lang.Object convert(XLObject obj)
Convert the argument into the expected type.

Parameters:
obj. -
Returns:
Object.

getHelpText

public java.lang.String getHelpText()
Description copied from interface: Argument
Get the argument help.

Specified by:
getHelpText in interface Argument
Returns:
String.

getName

public java.lang.String getName()
Description copied from interface: Argument
Get the argument name.

Specified by:
getName in interface Argument
Returns:
String.