org.apache.tapestry.parse
Class LocalizationToken
java.lang.Object
org.apache.tapestry.parse.TemplateToken
org.apache.tapestry.parse.LocalizationToken
- All Implemented Interfaces:
- ILocatable
public class LocalizationToken
- extends TemplateToken
Represents localized text from the template.
- Since:
- 3.0
- Version:
- $Id: LocalizationToken.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
- See Also:
TokenType.LOCALIZATION
LocalizationToken
public LocalizationToken(String tag,
String key,
boolean raw,
Map attributes,
ILocation location)
- Creates a new token.
- Parameters:
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 token
getAttributes
public Map getAttributes()
- Returns any attributes for the token, which may be null. Do not modify
the return value.
isRaw
public boolean isRaw()
getTag
public String getTag()
getKey
public String getKey()