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 String
expression
protected Pattern
expressionPattern
protected String
replacement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)boolean
equals(Object obj)
int
hashCode()
String
toString()
-
-
-
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
-
-