T - type of defaultpublic class DefaultValueTransformer<T> extends Object implements Lookup, FunctionTransformer<Void,T>, Supplier<T>, ChainAware, Serializable
SeedTransformer,
Serialized Form| Constructor and Description |
|---|
DefaultValueTransformer() |
DefaultValueTransformer(T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
Chain |
getChain()
If the processor that implements this is part of a chain, it will return a reference to the chain else null
|
Object |
getDefaultValue()
The Default Value
|
Object |
getPredecessor()
Get the item before this one in the Chain
|
void |
setChain(Chain chain)
If the processor that implements this is part of a chain, it will have a reference to the chain
|
void |
setDefaultValue(T defaultValue)
The Default Value
|
void |
setPredecessor(Object predecessor)
Get the item before this one in the Chain
|
Object |
transform(Object input)
For a Given String, Lookup a value for it
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic DefaultValueTransformer()
public DefaultValueTransformer(T defaultValue)
public Object transform(Object input)
Lookuppublic void setChain(Chain chain)
ChainAwaresetChain in interface ChainAwarechain - as Chainpublic Chain getChain()
ChainAwaregetChain in interface ChainAwareChainpublic Object getPredecessor()
ChainAwaregetPredecessor in interface ChainAwarepublic void setPredecessor(Object predecessor)
ChainAwaresetPredecessor in interface ChainAwarepublic Object getDefaultValue()
public void setDefaultValue(T defaultValue)
Copyright © 2018. All rights reserved.