public class PatternTransformer extends Object implements PropertyTransformer<Pattern>
| Modifier and Type | Field and Description |
|---|---|
static PatternTransformer |
SHARED_INSTANCE
Shared instance of this transformer
|
| Constructor and Description |
|---|
PatternTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Pattern |
transform(String value,
Field field)
Transforms String to Pattern object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic static final PatternTransformer SHARED_INSTANCE
public Pattern transform(String value, Field field) throws TransformationException
transform in interface PropertyTransformer<Pattern>value - value that will be transformedfield - value will be assigned to this fieldTransformationException - if pattern is not validCopyright © 2014–2015. All rights reserved.