|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.thymeleaf.util.DOMUtils
public final class DOMUtils
Method Summary | |
---|---|
static char[] |
escapeXml(char[] ch,
boolean escapeQuotes)
|
static String |
escapeXml(String str,
boolean escapeQuotes)
|
static NestableNode |
extractFragmentByAttributeValue(Node root,
String elementName,
String attributeName,
String attributeValue)
Deprecated. Use extractFragmentByElementAndAttributeValue(List, String, String, String)
instead. Will be removed in 2.1.x |
static List<Node> |
extractFragmentByElementAndAttributeValue(List<Node> rootNodes,
String elementName,
String attributeName,
String attributeValue)
|
static Document |
getDOMFor(Configuration configuration,
Reader source,
ITemplateParser parser)
|
static Document |
getDOMFor(Reader source,
ITemplateParser parser)
|
static Document |
getHtml5DOMFor(Reader source)
|
static String |
getHtml5For(Node node)
|
static Document |
getLegacyHTML5DOMFor(Reader source)
|
static String |
getOutputFor(Arguments arguments,
Node node,
AbstractGeneralTemplateWriter templateWriter)
|
static String |
getOutputFor(Node node,
AbstractGeneralTemplateWriter templateWriter,
String templateMode)
This method is for testing purposes only! |
static Document |
getXhtmlDOMFor(Reader source)
|
static String |
getXhtmlFor(Node node)
|
static String |
getXhtmlHtml5For(Node node)
Deprecated. To be removed in 2.1.0. Use getHtml5For(Node) ,
getXhtmlFor(Node) or
getOutputFor(Node, AbstractGeneralTemplateWriter, String)
instead. |
static Document |
getXmlDOMFor(Reader source)
|
static String |
getXmlFor(Node node)
|
static String |
unescapeXml(String str,
boolean unescapeQuotes)
|
static void |
writeXmlEscaped(char[] buffer,
Writer writer,
boolean escapeQuotes)
|
static void |
writeXmlEscaped(String buffer,
Writer writer,
boolean escapeQuotes)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<Node> extractFragmentByElementAndAttributeValue(List<Node> rootNodes, String elementName, String attributeName, String attributeValue)
@Deprecated public static NestableNode extractFragmentByAttributeValue(Node root, String elementName, String attributeName, String attributeValue)
extractFragmentByElementAndAttributeValue(List, String, String, String)
instead. Will be removed in 2.1.x
public static char[] escapeXml(char[] ch, boolean escapeQuotes) throws IOException
IOException
public static String escapeXml(String str, boolean escapeQuotes) throws IOException
IOException
public static void writeXmlEscaped(String buffer, Writer writer, boolean escapeQuotes) throws IOException
IOException
public static void writeXmlEscaped(char[] buffer, Writer writer, boolean escapeQuotes) throws IOException
IOException
public static String unescapeXml(String str, boolean unescapeQuotes)
public static String getXmlFor(Node node)
@Deprecated public static String getXhtmlHtml5For(Node node)
getHtml5For(Node)
,
getXhtmlFor(Node)
or
getOutputFor(Node, AbstractGeneralTemplateWriter, String)
instead.
public static String getXhtmlFor(Node node)
public static String getHtml5For(Node node)
public static String getOutputFor(Node node, AbstractGeneralTemplateWriter templateWriter, String templateMode)
This method is for testing purposes only! It creates mock configuration, template and resource resolution artifacts, etc. Its usage during normal operation could heavily affect performance.
node
- the node which output is to be computedtemplateWriter
- the template writter to be used for creating the output
public static String getOutputFor(Arguments arguments, Node node, AbstractGeneralTemplateWriter templateWriter)
public static Document getHtml5DOMFor(Reader source)
public static Document getLegacyHTML5DOMFor(Reader source)
public static Document getXmlDOMFor(Reader source)
public static Document getXhtmlDOMFor(Reader source)
public static Document getDOMFor(Reader source, ITemplateParser parser)
public static Document getDOMFor(Configuration configuration, Reader source, ITemplateParser parser)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |