org.apache.tapestry5.internal.services
Class StaxTemplateParser

java.lang.Object
  extended by org.apache.tapestry5.internal.services.StaxTemplateParser

public class StaxTemplateParser
extends Object

Implementation of TemplateParser based on the Streaming API for XML. It uses a few features of Stax2 and is therefore dependent on the Woodstock STAX parser.


Field Summary
static String TAPESTRY_SCHEMA_5_0_0
          Used as the namespace URI for Tapestry templates.
static String TAPESTRY_SCHEMA_5_1_0
          Adds several new elements.
static String XML_NAMESPACE_URI
           
 
Constructor Summary
StaxTemplateParser(Resource resource, org.codehaus.stax2.XMLInputFactory2 inputFactory)
           
 
Method Summary
 ComponentTemplate parse(boolean compressWhitespace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_NAMESPACE_URI

public static final String XML_NAMESPACE_URI
See Also:
Constant Field Values

TAPESTRY_SCHEMA_5_0_0

public static final String TAPESTRY_SCHEMA_5_0_0
Used as the namespace URI for Tapestry templates.

See Also:
Constant Field Values

TAPESTRY_SCHEMA_5_1_0

public static final String TAPESTRY_SCHEMA_5_1_0
Adds several new elements.

See Also:
Constant Field Values
Constructor Detail

StaxTemplateParser

public StaxTemplateParser(Resource resource,
                          org.codehaus.stax2.XMLInputFactory2 inputFactory)
                   throws javax.xml.stream.XMLStreamException,
                          IOException
Throws:
javax.xml.stream.XMLStreamException
IOException
Method Detail

parse

public ComponentTemplate parse(boolean compressWhitespace)


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.