public class TwoWayTransformer extends Object implements org.apache.commons.collections.Transformer
Transformer
may have a dual purpose in both directions of the Transformation process
Transformer.transform(Object)
isModifier and Type | Field and Description |
---|---|
protected org.apache.commons.collections.Transformer |
from |
protected org.apache.commons.collections.Transformer |
to |
Constructor and Description |
---|
TwoWayTransformer() |
TwoWayTransformer(org.apache.commons.collections.Transformer to) |
TwoWayTransformer(org.apache.commons.collections.Transformer to,
org.apache.commons.collections.Transformer from) |
Modifier and Type | Method and Description |
---|---|
Object |
from(Object o)
Reverse transform FROM transformed object
|
org.apache.commons.collections.Transformer |
getFrom()
Reverse transform FROM transformed object
|
org.apache.commons.collections.Transformer |
getTo()
Standard forward transform
|
void |
setFrom(org.apache.commons.collections.Transformer from)
Reverse transform FROM transformed object
|
void |
setTo(org.apache.commons.collections.Transformer to)
Standard forward transform
|
Object |
to(Object o)
Standard forward transform
|
Object |
transform(Object o)
Standard forward transform.
|
protected org.apache.commons.collections.Transformer to
protected org.apache.commons.collections.Transformer from
public TwoWayTransformer()
public TwoWayTransformer(org.apache.commons.collections.Transformer to)
public TwoWayTransformer(org.apache.commons.collections.Transformer to, org.apache.commons.collections.Transformer from)
public org.apache.commons.collections.Transformer getTo()
public void setTo(org.apache.commons.collections.Transformer to)
public org.apache.commons.collections.Transformer getFrom()
public void setFrom(org.apache.commons.collections.Transformer from)
public Object transform(Object o)
to
transform
in interface org.apache.commons.collections.Transformer
Copyright © 2018. All rights reserved.