|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.jmcda.xws.transformer.Transformers<F>
F - the function type.public class Transformers<F>
Contains a set of functions, called transformers, accessible by return type. One transformer maximum for a given return type.
| Constructor Summary | |
|---|---|
Transformers()
|
|
Transformers(boolean uniqueInputType,
boolean uniqueReturnType)
|
|
Transformers(Set<F> functions)
Creates a transformers object holding the given functions. |
|
| Method Summary | |
|---|---|
void |
add(F function)
Adds the given function to this set of functions. |
void |
addAll(Set<F> functions)
Adds all the given functions to this set of functions. |
boolean |
containsFromTypeExact(Type fromType)
Tests whether the given from type has an associated function. |
boolean |
containsReturnType(Type returnType)
Tests whether the given return type has an associated function. |
Method |
getApplyMethod(Class<? extends F> function)
Retrieves the apply method of the given class implementing a function. |
static Method |
getApplyMethodGeneric(Class<?> function)
Retrieves the apply method of the given class. |
Type |
getRequired(Type returnType)
Retrieves the type of the required parameter to use the function associated to the given return type, or the function compatible with the given return type. |
F |
getTransformerFromExact(Type fromType)
Retrieves the transformer function associated with the given input type. |
F |
getTransformerFromLaxist(Type fromType)
Retrieves the transformer function associated with the given input type, or that is able to transform the given input type. |
F |
getTransformerTo(Type returnType)
Retrieves the transformer function associated with the given return type. |
F |
getTransformerToLaxist(Type returnType)
Retrieves the transformer function that returns the given type, or if no exact transformer is found, the transformer that is able to return the given type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transformers(boolean uniqueInputType,
boolean uniqueReturnType)
public Transformers(Set<F> functions)
functions - not null.public Transformers()
| Method Detail |
|---|
public void addAll(Set<F> functions)
functions - not null.public void add(F function)
function - not null.public boolean containsReturnType(Type returnType)
returnType - not null.
true iff at least one function in this object has the given return type.public boolean containsFromTypeExact(Type fromType)
fromType - not null.
true iff at least one function in this object has the given type as input type.public static Method getApplyMethodGeneric(Class<?> function)
function - not null.
null.public Method getApplyMethod(Class<? extends F> function)
function - not null.
null.public Type getRequired(Type returnType)
returnType - not null.
null.containsReturnType(Type)public F getTransformerFromExact(Type fromType)
fromType - not null.
null.public F getTransformerFromLaxist(Type fromType)
fromType - not null.
null iff not found.public F getTransformerTo(Type returnType)
returnType - not null, in this object.
null.public F getTransformerToLaxist(Type returnType)
returnType - not null.
null if not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||