net.thucydides.core.util
Class Inflector.Rule

Package class diagram package Inflector.Rule
java.lang.Object
  extended by net.thucydides.core.util.Inflector.Rule
Enclosing class:
Inflector

protected class Inflector.Rule
extends Object


Field Summary
protected  String expression
           
protected  Pattern expressionPattern
           
protected  String replacement
           
 
Constructor Summary
protected Inflector.Rule(String expression, String replacement)
           
 
Method Summary
protected  String apply(String input)
          Apply the rule against the input string, returning the modified string or null if the rule didn't apply (and no modifications were made)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expression

protected final String expression

expressionPattern

protected final Pattern expressionPattern

replacement

protected final String replacement
Constructor Detail

Inflector.Rule

protected Inflector.Rule(String expression,
                         String replacement)
Method Detail

apply

protected String apply(String input)
Apply the rule against the input string, returning the modified string or null if the rule didn't apply (and no modifications were made)

Parameters:
input - the input string
Returns:
the modified string if this rule applied, or null if the input was not modified by this rule


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.