org.thymeleaf.templateparser.xmlsax
Class XhtmlValidatingSAXTemplateParser

Object
  extended by org.thymeleaf.templateparser.xmlsax.AbstractNonValidatingSAXTemplateParser
      extended by org.thymeleaf.templateparser.xmlsax.AbstractValidatingSAXTemplateParser
          extended by org.thymeleaf.templateparser.xmlsax.XhtmlValidatingSAXTemplateParser
All Implemented Interfaces:
ITemplateParser

public final class XhtmlValidatingSAXTemplateParser
extends AbstractValidatingSAXTemplateParser

Parses XML documents, using a standard SAX parser.

This implementation populates tree nodes with detailed location information (document name and line number).

Since:
2.0.0
Author:
Guven Demir, Daniel Fernández

Constructor Summary
XhtmlValidatingSAXTemplateParser(int poolSize)
           
 
Method Summary
protected  java.util.List<Node> unwrapFragment(Document document)
           
protected  String wrapFragment(String fragment)
           
 
Methods inherited from class org.thymeleaf.templateparser.xmlsax.AbstractValidatingSAXTemplateParser
getPool
 
Methods inherited from class org.thymeleaf.templateparser.xmlsax.AbstractNonValidatingSAXTemplateParser
createSaxParsers, getNonValidatingPool, parseFragment, parseTemplate
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhtmlValidatingSAXTemplateParser

public XhtmlValidatingSAXTemplateParser(int poolSize)
Method Detail

wrapFragment

protected final String wrapFragment(String fragment)
Specified by:
wrapFragment in class AbstractNonValidatingSAXTemplateParser

unwrapFragment

protected final java.util.List<Node> unwrapFragment(Document document)
Specified by:
unwrapFragment in class AbstractNonValidatingSAXTemplateParser


Copyright © 2012 The THYMELEAF team. All Rights Reserved.