ch.elca.el4j.services.i18n
Interface MessageRewriter.Rule
- All Known Implementing Classes: 
 - RewritingUtilities
 
- Enclosing class:
 - MessageRewriter
 
public static interface MessageRewriter.Rule
Represents a rewriting rule.
 
rewrite
StringBuffer rewrite(String key,
                     Object[] arguments,
                     StringBuffer target)
- Attempts to rewrite the key with this rule and the provided
 user arguments. If successful, the resolved message is appended to
 
target, which is then returned. If unsuccessful, this method
 does not incur observable side effects and returns null.
- Parameters:
 key - the key to rewritearguments - the user arguments (used to replace {0}, {1}, ...)target - the StringBuffer to append to
- Returns:
 target if successful, null otherwise
 
 
Copyright © 2005-2011 ELCA. All Rights Reserved.