|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.parse.TemplateToken org.apache.tapestry.parse.OpenToken
public class OpenToken
Token representing the open tag for a component. Components may be either specified or implicit. Specified components (the traditional type, dating back to the origin of Tapestry) are matched by an entry in the containing component's specification. Implicit components specify their type in the component template and must not have an entry in the containing component's specification.
TokenType.OPEN
Constructor Summary | |
---|---|
OpenToken(String tag,
String id,
String componentType,
ILocation location)
Creates a new token with the given tag, id and type |
Method Summary | |
---|---|
void |
addAttribute(String name,
AttributeType type,
String value)
|
protected void |
extendDescription(org.apache.commons.lang.builder.ToStringBuilder builder)
Overridden in subclasses to append additional fields (defined in the subclass) to the description. |
Map |
getAttributesMap()
Returns a Map of attributes. |
String |
getComponentType()
Returns the specified component type, or null for a component where the type is not defined in the template. |
String |
getId()
Returns the id for the component. |
String |
getTag()
Returns the tag used to represent the component within the template. |
Methods inherited from class org.apache.tapestry.parse.TemplateToken |
---|
getLocation, getType, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpenToken(String tag, String id, String componentType, ILocation location)
tag
- the template tag which represents the component, typically "span"id
- the id for the component, which may be assigned by the template
parser for implicit componentscomponentType
- the type of component, if an implicit component, or null for
a specified componentlocation
- location of tag represented by this tokenMethod Detail |
---|
public String getId()
public String getTag()
public String getComponentType()
public void addAttribute(String name, AttributeType type, String value)
public Map getAttributesMap()
TemplateAttribute
.
The caller should not modify the Map. Returns null if
this OpenToken contains no attributes.
protected void extendDescription(org.apache.commons.lang.builder.ToStringBuilder builder)
TemplateToken
extendDescription
in class TemplateToken
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |