public class LocalizationToken extends TemplateToken
TokenType.LOCALIZATION
Constructor and Description |
---|
LocalizationToken(java.lang.String tag,
java.lang.String key,
boolean raw,
java.util.Map attributes,
org.apache.hivemind.Location location)
Creates a new token.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getAttributes()
Returns any attributes for the token, which may be null.
|
java.lang.String |
getKey() |
java.lang.String |
getTag() |
boolean |
isRaw() |
extendDescription, getLocation, getType, toString
public LocalizationToken(java.lang.String tag, java.lang.String key, boolean raw, java.util.Map attributes, org.apache.hivemind.Location location)
tag
- the tag of the element from the templatekey
- the localization key specifiedraw
- if true, then the localized value contains markup that should not be escapedattributes
- any additional attributes (beyond those used to define key and raw)
that were specified. This value is retained, not copied.location
- location of the tag which defines this tokenpublic java.util.Map getAttributes()
public boolean isRaw()
public java.lang.String getTag()
public java.lang.String getKey()