Package org.hl7.fhir.utilities
Class Inflector.Rule
- java.lang.Object
-
- org.hl7.fhir.utilities.Inflector.Rule
-
- Enclosing class:
- Inflector
protected class Inflector.Rule extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringexpressionprotected PatternexpressionPatternprotected Stringreplacement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringapply(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)booleanequals(Object obj)inthashCode()StringtoString()
-
-
-
Field Detail
-
expression
protected final String expression
-
expressionPattern
protected final Pattern expressionPattern
-
replacement
protected final 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
-
-