public abstract class NameTransformer extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | NameTransformer.Chained | 
| protected static class  | NameTransformer.NopTransformer | 
| Modifier and Type | Field and Description | 
|---|---|
| static NameTransformer | NOPSingleton "no-operation" transformer which simply returns given
 name as is. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | NameTransformer() | 
| Modifier and Type | Method and Description | 
|---|---|
| static NameTransformer | chainedTransformer(NameTransformer t1,
                  NameTransformer t2)Method that constructs transformer that applies given transformers
 as a sequence; essentially combines separate transform operations
 into one logical transformation. | 
| abstract String | reverse(String transformed)Method called when reversal of transformation is needed; should return
 null if this is not possible, that is, given name cannot have been
 result of calling  transform(java.lang.String)of this object. | 
| static NameTransformer | simpleTransformer(String prefix,
                 String suffix)Factory method for constructing a simple transformer based on
 prefix and/or suffix. | 
| abstract String | transform(String name)Method called when (forward) transformation is needed. | 
public static final NameTransformer NOP
public static NameTransformer simpleTransformer(String prefix, String suffix)
public static NameTransformer chainedTransformer(NameTransformer t1, NameTransformer t2)
public abstract String transform(String name)
public abstract String reverse(String transformed)
transform(java.lang.String) of this object.Copyright © 2008–2019 FasterXML. All rights reserved.