| Modifier and Type | Class and Description |
|---|---|
static class |
Filtering.Token |
| Constructor and Description |
|---|
Filtering() |
| Modifier and Type | Method and Description |
|---|---|
static void |
filter(Element element,
Properties properties)
Filter
${name} placeholders found within the XML element. |
static void |
filter(Element element,
PropertyResolver propertyResolver)
Filter
${name} placeholders found within the XML element. |
static String |
filter(String value,
Properties properties)
Filter
${name} placeholders found within the value using given properties. |
static String |
filter(String value,
PropertyResolver propertyResolver)
Filter
${name} placeholders found within the value using given property resolver. |
static String |
getProperty(String value,
PropertyResolver resolver) |
static List<Filtering.Token> |
splitIntoTokens(String input)
Splits given string into
tokens. |
public Filtering()
public static String getProperty(String value, PropertyResolver resolver) throws PropertyNotFoundException
PropertyNotFoundExceptionpublic static String filter(String value, PropertyResolver propertyResolver) throws PropertyNotFoundException
${name} placeholders found within the value using given property resolver.value - the value to filter the properties intopropertyResolver - resolver for the property valuesPropertyNotFoundException - when some property cannot be foundpublic static List<Filtering.Token> splitIntoTokens(String input)
tokens.
Token is ordinary text or property placeholder: ${name}.
For instance the string: "abc${abc}abc" will be split
into three tokens: text "abc", property "abc" and text "abc".
input - input string to split into tokenspublic static String filter(String value, Properties properties) throws PropertyNotFoundException
${name} placeholders found within the value using given properties.value - the value to filter the properties intoproperties - properties to filter into the valuePropertyNotFoundException - when some property cannot be foundpublic static void filter(Element element, PropertyResolver propertyResolver) throws PropertyNotFoundException
${name} placeholders found within the XML element.
The structure of the XML document is not changed. Each attribute and element text is filtered separately.
element - propertyResolver - PropertyNotFoundExceptionpublic static void filter(Element element, Properties properties) throws PropertyNotFoundException
${name} placeholders found within the XML element.PropertyNotFoundExceptionfilter(Element, PropertyResolver)Copyright © 2013 Atteo. All Rights Reserved.