com.notuvy.util
Class Translation.Rewrite

java.lang.Object
  extended by com.notuvy.util.Translation<String>
      extended by com.notuvy.util.Translation.Rewrite
Enclosing class:
Translation<T>

public static class Translation.Rewrite
extends Translation<String>

This customizes the lookup behavior. If no match is found and no fallback is defined, then the lookup key is returned. It requires that the value type is also String.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.notuvy.util.Translation
Translation.KeyTranformation, Translation.Rewrite
 
Field Summary
 
Fields inherited from class com.notuvy.util.Translation
ALPHANUMERIC, CASE_INSENSITIVE, TRIMMED
 
Constructor Summary
Translation.Rewrite()
           
 
Method Summary
 String lookup(String pKey)
           
 
Methods inherited from class com.notuvy.util.Translation
addTransform, clear, define, defines, getFallback, getUnderlying, isEmpty, setFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translation.Rewrite

public Translation.Rewrite()
Method Detail

lookup

public String lookup(String pKey)
Overrides:
lookup in class Translation<String>


Copyright © 2013. All Rights Reserved.