public class PhraseParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PhraseParser.BundleResolver
Resolves the element to Bundle.get(key).toString()
|
static class |
PhraseParser.InvertBooleanResolver
Check if the key is a boolean value and return the inverse of that
value, otherwise return true if the key is empty
|
static class |
PhraseParser.IsEmptyResolver |
static class |
PhraseParser.NotEmptyResolver |
static class |
PhraseParser.Parameters |
static interface |
PhraseParser.Resolver
Resolves a phrase element
|
Constructor and Description |
---|
PhraseParser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
expandPhrase(java.lang.String phraseSource,
PhraseParser.Parameters params)
Expand a phrase to a resulting string
|
static java.lang.String |
expandPhraseElem(org.w3c.dom.Node elemNode,
PhraseParser.Parameters parms) |
static java.lang.String |
expandPhraseText(org.w3c.dom.Node textNode,
PhraseParser.Parameters parms) |
public static java.lang.String expandPhraseText(org.w3c.dom.Node textNode, PhraseParser.Parameters parms)
public static java.lang.String expandPhraseElem(org.w3c.dom.Node elemNode, PhraseParser.Parameters parms)
public static java.lang.String expandPhrase(java.lang.String phraseSource, PhraseParser.Parameters params)
phraseSource
- the source phraseparams
- the parameters to be used