public class ResourceBundleStringHook extends java.lang.Object implements StringHook
StringHook| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HOOK_CHAR |
| Constructor and Description |
|---|
ResourceBundleStringHook(java.util.ResourceBundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTranslatedString(java.lang.String tag,
java.lang.Object obj,
java.lang.String attr,
java.lang.String value,
cookxml.core.DecodeEngine decodeEngine)
this function is used to substitute a string specified in XML with a different string.
|
public ResourceBundleStringHook(java.util.ResourceBundle bundle)
public java.lang.String getTranslatedString(java.lang.String tag,
java.lang.Object obj,
java.lang.String attr,
java.lang.String value,
cookxml.core.DecodeEngine decodeEngine)
StringHookgetTranslatedString in interface StringHooktag - the parent tagobj - the parent objectattr - the attribute that this string is hooked tovalue - the string value to be translateddecodeEngine - the decodeEngine being used