org.apache.tapestry5.internal.parser
Class StartElementToken

java.lang.Object
  extended by org.apache.tapestry5.ioc.BaseLocatable
      extended by org.apache.tapestry5.internal.parser.TemplateToken
          extended by org.apache.tapestry5.internal.parser.StartElementToken
All Implemented Interfaces:
Locatable, RenderCommand

public class StartElementToken
extends TemplateToken
implements RenderCommand

The start of an ordinary element within the template (as opposed to StartComponentToken, which represents an active Tapestry token. A start element token may be immediately followed by AttributeTokens that represents the attributes associated with the element. A start element token will always be balanced by a EndElementToken (though there will likely be some amount of intermediate tokens).


Field Summary
 String name
           
 String namespaceURI
           
 
Constructor Summary
StartElementToken(String namespaceURI, String name, Location location)
           
 
Method Summary
 void render(MarkupWriter writer, RenderQueue queue)
          Invoked on an object to request that it render itself.
 String toString()
           
 
Methods inherited from class org.apache.tapestry5.internal.parser.TemplateToken
getTokenType
 
Methods inherited from class org.apache.tapestry5.ioc.BaseLocatable
getLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

namespaceURI

public final String namespaceURI

name

public final String name
Constructor Detail

StartElementToken

public StartElementToken(String namespaceURI,
                         String name,
                         Location location)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

render

public void render(MarkupWriter writer,
                   RenderQueue queue)
Description copied from interface: RenderCommand
Invoked on an object to request that it render itself. This involves a mix of invoking methods on the writer, and queueing up additional commands (often, representing children of the object that was invoked) to perform additional rendering.

In this way, rendering is a tail recursive algorithm, but is not implemented using tail recursion.

Specified by:
render in interface RenderCommand


Copyright © 2003-2012 The Apache Software Foundation.