| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sourceforge.espro.model.MethodProvider
public class MethodProvider
The MethodProvider provides the elicitation methods. This will find any method from the probelicitation package which can be used with espro.
| Field Summary | |
|---|---|
| protected  java.util.ArrayList<java.lang.String> | methodsThe list of the available methods. | 
| Method Summary | |
|---|---|
|  ElicitationMethod | getDefault()Returns a default Method. | 
|  java.lang.reflect.Method | getGetter(java.lang.reflect.Field f,
          ElicitationMethod method)Returns the getter for the field. | 
| static MethodProvider | getInstance()This is a singleton class, so geht the instance here. | 
|  ElicitationMethod | getMethod(ElicitationMethod elicitationMethod)Returns a new ElicitationMethod created using the parameters of the given elicitation method. | 
|  ElicitationMethod | getMethod(java.lang.String method)Returns the method by a given string. | 
| static java.lang.String | getMethodPrefix()Returns the methodPrefix. | 
|  java.util.ArrayList<java.lang.String> | getMethods()Returns the list of names of the known methods. | 
|  java.lang.reflect.Method | getSetter(java.lang.reflect.Field f,
          ElicitationMethod method)Returns a setter for the given field. | 
| static void | setMethodPrefix(java.lang.String methodPrefix)Sets the methodPrefix | 
| protected  boolean | validateMethod(java.lang.String name)Validates the method if it is available and correct programmed. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.util.ArrayList<java.lang.String> methods
| Method Detail | 
|---|
public static MethodProvider getInstance()
public static java.lang.String getMethodPrefix()
public static void setMethodPrefix(java.lang.String methodPrefix)
methodPrefix - The methodPrefix to set.public ElicitationMethod getDefault()
public java.lang.reflect.Method getGetter(java.lang.reflect.Field f,
                                          ElicitationMethod method)
f - The field.method - The elicitationMethod which contains the getter.
public ElicitationMethod getMethod(java.lang.String method)
method - The method's name.
java.lang.IllegalArgumentException - DOCUMENT ME!public java.util.ArrayList<java.lang.String> getMethods()
public java.lang.reflect.Method getSetter(java.lang.reflect.Field f,
                                          ElicitationMethod method)
f - The field.method - The ElicitationMethod which containts the setter.
protected boolean validateMethod(java.lang.String name)
name - The Name of the method.
public ElicitationMethod getMethod(ElicitationMethod elicitationMethod)
elicitationMethod - The Method fetching the params from.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||