Package org.thymeleaf.engine
Class ElementDefinitions
- Object
-
- org.thymeleaf.engine.ElementDefinitions
-
public final class ElementDefinitions extends Object
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
ALL_STANDARD_HTML_ELEMENT_NAMES
-
Constructor Summary
Constructors Constructor Description ElementDefinitions(Map<TemplateMode,Set<IElementProcessor>> elementProcessorsByTemplateMode)
ONLY FOR INTERNAL USE.
-
Method Summary
-
-
-
Constructor Detail
-
ElementDefinitions
public ElementDefinitions(Map<TemplateMode,Set<IElementProcessor>> elementProcessorsByTemplateMode)
ONLY FOR INTERNAL USE. This constructor is meant to be called only from inside the engine. It should never be called directly from any other classes.- Parameters:
elementProcessorsByTemplateMode
- the processors (element and node), already ordered by precedence, which might be of application to the elements which definition is to be stored here.
-
-
Method Detail
-
forName
public ElementDefinition forName(TemplateMode templateMode, String elementName)
-
forName
public ElementDefinition forName(TemplateMode templateMode, String prefix, String elementName)
-
forName
public ElementDefinition forName(TemplateMode templateMode, char[] elementName, int elementNameOffset, int elementNameLen)
-
forHTMLName
public HTMLElementDefinition forHTMLName(String elementName)
-
forHTMLName
public HTMLElementDefinition forHTMLName(String prefix, String elementName)
-
forHTMLName
public HTMLElementDefinition forHTMLName(char[] elementName, int elementNameOffset, int elementNameLen)
-
forXMLName
public XMLElementDefinition forXMLName(String elementName)
-
forXMLName
public XMLElementDefinition forXMLName(String prefix, String elementName)
-
forXMLName
public XMLElementDefinition forXMLName(char[] elementName, int elementNameOffset, int elementNameLen)
-
forTextName
public TextElementDefinition forTextName(String elementName)
-
forTextName
public TextElementDefinition forTextName(String prefix, String elementName)
-
forTextName
public TextElementDefinition forTextName(char[] elementName, int elementNameOffset, int elementNameLen)
-
forJavaScriptName
public TextElementDefinition forJavaScriptName(String elementName)
-
forJavaScriptName
public TextElementDefinition forJavaScriptName(String prefix, String elementName)
-
forJavaScriptName
public TextElementDefinition forJavaScriptName(char[] elementName, int elementNameOffset, int elementNameLen)
-
forCSSName
public TextElementDefinition forCSSName(String elementName)
-
forCSSName
public TextElementDefinition forCSSName(String prefix, String elementName)
-
forCSSName
public TextElementDefinition forCSSName(char[] elementName, int elementNameOffset, int elementNameLen)
-
-