public class SkipValueMapperBehavior extends Object implements ModeAwareMapperInvoker, MapperBehavior
Mapper from applying a value that matches value (default null); to the Entitycan do the same thing, though not as conveniently| Constructor and Description |
|---|
SkipValueMapperBehavior() |
SkipValueMapperBehavior(List<Mode> modesSupported) |
| Modifier and Type | Method and Description |
|---|---|
Mode |
getMode()
The
Mode for which only the wrappedMpper will be invoked.If null, it will execute everytime, however as good as not using this Wrapper |
List<Mode> |
getModesSupported()
Depends on the mapper
|
Object |
getValue()
The value that if matches the result from the process using
Mapper.getProcessor() will be skipped and not applied
to the final entity. |
boolean |
invokeMapper(Mode mode)
Invoke is the Readers
Mode matches any of getModesSupported() |
void |
setMode(Mode m) |
void |
setModesSupported(List<Mode> modesSupported)
Depends on the mapper
|
void |
setValue(Object value)
The value that if matches the result from the process using
Mapper.getProcessor() will be skipped and not applied
to the final entity. |
public Object getValue()
Mapper.getProcessor() will be skipped and not applied
to the final entity.public void setValue(Object value)
Mapper.getProcessor() will be skipped and not applied
to the final entity.public boolean invokeMapper(Mode mode)
Mode matches any of getModesSupported()invokeMapper in interface ModeAwareMapperInvokermode - as Modepublic void setModesSupported(List<Mode> modesSupported)
public List<Mode> getModesSupported()
getModesSupported in interface ModeAwarepublic Mode getMode()
Mode for which only the wrappedMpper will be invoked.Copyright © 2018. All rights reserved.