|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.variables.Substitutions
public class Substitutions
Performs string substitutions for message bundles, user prefs, and bidi variables.
| Nested Class Summary | |
|---|---|
static class |
Substitutions.Type
Defines all of the valid types of message substitutions. |
| Constructor Summary | |
|---|---|
Substitutions()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Substitutions()
| Method Detail |
|---|
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.
public Uri substituteUri(Uri uri)
uri -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||