public class Substitutions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Substitutions.Type
Defines all of the valid types of message substitutions.
|
| Constructor and Description |
|---|
Substitutions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubstitution(Substitutions.Type type,
String key,
String value)
Adds a new substitution for the given type.
|
void |
addSubstitutions(Substitutions.Type type,
Map<String,String> entries)
Adds many substitutions of the same type at once.
|
String |
getSubstitution(Substitutions.Type type,
String key) |
String |
substituteString(String input)
Performs string substitution only for the specified type.
|
Uri |
substituteUri(Uri uri)
Substitutes a uri
|
public void addSubstitution(Substitutions.Type type, String key, String value)
type - key - value - public String getSubstitution(Substitutions.Type type, String key)
public void addSubstitutions(Substitutions.Type type, Map<String,String> entries)
type - entries - public String substituteString(String input)
input was provided or input is null,
the output is left untouched.input - The base string, with substitution markers.Copyright © 2007-2012. All Rights Reserved.