|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.thymeleaf.templateparser.xmldom.AbstractNonValidatingDOMTemplateParser
@Deprecated public abstract class AbstractNonValidatingDOMTemplateParser
Parses XML documents, using a standard non-validating DOM parser.
This implementation first builds a DOM tree using the standard DOM API, and then translates this tree into a Thymeleaf-specific one. It also populates tree nodes with basic location information (document name only).
Constructor Summary | |
---|---|
protected |
AbstractNonValidatingDOMTemplateParser(int poolSize)
Deprecated. |
Method Summary | |
---|---|
protected ResourcePool<DocumentBuilder> |
createDocumentBuilders(int poolSize,
boolean validating)
Deprecated. |
protected ResourcePool<DocumentBuilder> |
getNonValidatingPool()
Deprecated. |
protected ResourcePool<DocumentBuilder> |
getPool()
Deprecated. |
protected TemplatePreprocessingReader |
getTemplatePreprocessingReader(Reader reader)
Deprecated. |
List<Node> |
parseFragment(Configuration configuration,
String fragment)
Deprecated. Parses the document fragment contained in the given String object. |
Document |
parseTemplate(Configuration configuration,
String documentName,
Reader reader)
Deprecated. Parses the document contained in the given Reader object. |
protected Document |
parseTemplateUsingPool(Configuration configuration,
String documentName,
Reader reader,
ResourcePool<DocumentBuilder> poolToBeUsed)
Deprecated. |
protected boolean |
shouldAddThymeleafRootToParser()
Deprecated. |
protected abstract List<Node> |
unwrapFragment(Document document)
Deprecated. |
protected abstract String |
wrapFragment(String fragment)
Deprecated. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractNonValidatingDOMTemplateParser(int poolSize)
Method Detail |
---|
protected ResourcePool<DocumentBuilder> getPool()
protected final ResourcePool<DocumentBuilder> getNonValidatingPool()
protected final ResourcePool<DocumentBuilder> createDocumentBuilders(int poolSize, boolean validating)
public final Document parseTemplate(Configuration configuration, String documentName, Reader reader)
ITemplateParser
Parses the document contained in the given Reader object.
parseTemplate
in interface ITemplateParser
configuration
- the Configuration objectdocumentName
- the document name (optional).reader
- the Reader on the document to be parsed (required).
protected final Document parseTemplateUsingPool(Configuration configuration, String documentName, Reader reader, ResourcePool<DocumentBuilder> poolToBeUsed)
public final List<Node> parseFragment(Configuration configuration, String fragment)
ITemplateParser
Parses the document fragment contained in the given String object.
parseFragment
in interface ITemplateParser
configuration
- the Configuration objectfragment
- the String containing the fragment
protected abstract String wrapFragment(String fragment)
protected abstract List<Node> unwrapFragment(Document document)
protected boolean shouldAddThymeleafRootToParser()
protected TemplatePreprocessingReader getTemplatePreprocessingReader(Reader reader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |