|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.jmcda.xws.transformer.TransformersWithInputCheck
public class TransformersWithInputCheck
Contains a set of functions, called transformers, accessible by return type. One transformer maximum for a given return type.
| Constructor Summary | |
|---|---|
TransformersWithInputCheck()
|
|
TransformersWithInputCheck(Set<FunctionWithInputCheck<?,?>> functions)
Creates a transformers object holding the given functions. |
|
| Method Summary | |
|---|---|
void |
add(FunctionWithInputCheck<?,?> function)
Adds the given function to this set of functions. |
void |
addAll(Set<FunctionWithInputCheck<?,?>> functions)
Adds all the given functions to this set of functions. |
boolean |
contains(Type returnType)
Tests whether the given return type has an associated function. |
static Method |
getApplyMethod(Class<? extends FunctionWithInputCheck<?,?>> function)
Retrieves the apply method of the given class implementing a function. |
Type |
getRequired(Type returnType)
Retrieves the type of the required parameter to use the function associated to the given return type. |
FunctionWithInputCheck<?,?> |
getTransformer(Type returnType)
Retrieves the transformer function associated with the given return type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformersWithInputCheck(Set<FunctionWithInputCheck<?,?>> functions)
functions - not null.public TransformersWithInputCheck()
| Method Detail |
|---|
public void addAll(Set<FunctionWithInputCheck<?,?>> functions)
functions - not null.public void add(FunctionWithInputCheck<?,?> function)
function - not null.public boolean contains(Type returnType)
returnType - not null.
true iff a function in this object has the given return type.public static Method getApplyMethod(Class<? extends FunctionWithInputCheck<?,?>> function)
function - not null.
null.public Type getRequired(Type returnType)
returnType - not null, must be contained in this object.
null.contains(Type)public FunctionWithInputCheck<?,?> getTransformer(Type returnType)
returnType - not null, in this object.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||