I - Input class for transformationP - Product of transformationpublic class CompositeConditionalTransformer<I,P> extends Object implements SimpleConditionalTransformer<I,P>, AggregateTransformer<I,P>
| Constructor and Description |
|---|
CompositeConditionalTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformer(SimpleConditionalTransformer<I,P> transformer,
int priority) |
boolean |
isAcceptable(I input)
Checks if the input is acceptable
for processing by the transformer.
|
void |
removeTransformer(SimpleConditionalTransformer<I,P> transformer) |
P |
transform(I input)
Transforms input into instance of product.
|
Collection<P> |
transformAll(Collection<? extends I> inputs) |
public boolean isAcceptable(I input)
SimpleConditionalTransformerisAcceptable in interface Acceptor<I>isAcceptable in interface SimpleConditionalTransformer<I,P>public P transform(I input)
Transformertransform in interface Transformer<I,P>input - Input which drives transformationpublic void addTransformer(SimpleConditionalTransformer<I,P> transformer, int priority) throws IllegalStateException
IllegalStateExceptionpublic void removeTransformer(SimpleConditionalTransformer<I,P> transformer) throws IllegalArgumentException
IllegalArgumentExceptionpublic Collection<P> transformAll(Collection<? extends I> inputs)
transformAll in interface AggregateTransformer<I,P>Copyright © 2015. All Rights Reserved.