| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final NameTransformer | NOP
Singleton "no-operation" transformer which simply returns given name as is. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public 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. |
| public abstract String | |
| public static NameTransformer | simpleTransformer(final String prefix, final String suffix)
Factory method for constructing a simple transformer based on prefix and/or suffix. |
| public abstract String |
| NOP | back to summary |
|---|---|
| public static final NameTransformer NOP Singleton "no-operation" transformer which simply returns given name as is. Used commonly as placeholder or marker. | |
| NameTransformer | back to summary |
|---|---|
| protected NameTransformer() | |
| chainedTransformer | back to summary |
|---|---|
| public 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. | |
| reverse | back to summary |
|---|---|
| public 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 | |
| simpleTransformer | back to summary |
|---|---|
| public static NameTransformer simpleTransformer(final String prefix, final String suffix) Factory method for constructing a simple transformer based on prefix and/or suffix. | |
| transform | back to summary |
|---|---|
| public abstract String transform(String name) Method called when (forward) transformation is needed. | |
| Modifier and Type | Field and Description |
|---|---|
| protected final NameTransformer | |
| protected final NameTransformer | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | reverse(String transformed)
Implements abstract com. transform of this object.
|
| public String | |
| public String | transform(String name)
Implements abstract com. |
| _t1 | back to summary |
|---|---|
| protected final NameTransformer _t1 | |
| _t2 | back to summary |
|---|---|
| protected final NameTransformer _t2 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Chained | back to summary |
|---|---|
| public Chained(NameTransformer t1, NameTransformer t2) | |
| reverse | back to summary |
|---|---|
| public String reverse(String transformed) Implements abstract com. Doc from com. 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transform | back to summary |
|---|---|
| public String transform(String name) Implements abstract com. Doc from com. Method called when (forward) transformation is needed.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | reverse(String transformed)
Implements abstract com. transform of this object.
|
| public String | transform(String name)
Implements abstract com. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NopTransformer | back to summary |
|---|---|
| protected NopTransformer() | |
| reverse | back to summary |
|---|---|
| public String reverse(String transformed) Implements abstract com. Doc from com. 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 | back to summary |
|---|---|
| public String transform(String name) Implements abstract com. Doc from com. Method called when (forward) transformation is needed.
| |