Package org.thymeleaf.engine
Class AttributeDefinitions
- Object
-
- org.thymeleaf.engine.AttributeDefinitions
-
public final class AttributeDefinitions extends Object
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
ALL_STANDARD_HTML_ATTRIBUTE_NAMES
-
Constructor Summary
Constructors Constructor Description AttributeDefinitions(Map<TemplateMode,Set<IElementProcessor>> elementProcessorsByTemplateMode)
ONLY FOR INTERNAL USE.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextAttributeDefinition
forCSSName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
TextAttributeDefinition
forCSSName(String attributeName)
TextAttributeDefinition
forCSSName(String prefix, String attributeName)
HTMLAttributeDefinition
forHTMLName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
HTMLAttributeDefinition
forHTMLName(String attributeName)
HTMLAttributeDefinition
forHTMLName(String prefix, String attributeName)
TextAttributeDefinition
forJavaScriptName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
TextAttributeDefinition
forJavaScriptName(String attributeName)
TextAttributeDefinition
forJavaScriptName(String prefix, String attributeName)
AttributeDefinition
forName(TemplateMode templateMode, char[] attributeName, int attributeNameOffset, int attributeNameLen)
AttributeDefinition
forName(TemplateMode templateMode, String attributeName)
AttributeDefinition
forName(TemplateMode templateMode, String prefix, String attributeName)
TextAttributeDefinition
forTextName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
TextAttributeDefinition
forTextName(String attributeName)
TextAttributeDefinition
forTextName(String prefix, String attributeName)
XMLAttributeDefinition
forXMLName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
XMLAttributeDefinition
forXMLName(String attributeName)
XMLAttributeDefinition
forXMLName(String prefix, String attributeName)
-
-
-
Constructor Detail
-
AttributeDefinitions
public AttributeDefinitions(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 attributes which definition is to be stored here.
-
-
Method Detail
-
forName
public AttributeDefinition forName(TemplateMode templateMode, String attributeName)
-
forName
public AttributeDefinition forName(TemplateMode templateMode, String prefix, String attributeName)
-
forName
public AttributeDefinition forName(TemplateMode templateMode, char[] attributeName, int attributeNameOffset, int attributeNameLen)
-
forHTMLName
public HTMLAttributeDefinition forHTMLName(String attributeName)
-
forHTMLName
public HTMLAttributeDefinition forHTMLName(String prefix, String attributeName)
-
forHTMLName
public HTMLAttributeDefinition forHTMLName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
-
forXMLName
public XMLAttributeDefinition forXMLName(String attributeName)
-
forXMLName
public XMLAttributeDefinition forXMLName(String prefix, String attributeName)
-
forXMLName
public XMLAttributeDefinition forXMLName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
-
forTextName
public TextAttributeDefinition forTextName(String attributeName)
-
forTextName
public TextAttributeDefinition forTextName(String prefix, String attributeName)
-
forTextName
public TextAttributeDefinition forTextName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
-
forJavaScriptName
public TextAttributeDefinition forJavaScriptName(String attributeName)
-
forJavaScriptName
public TextAttributeDefinition forJavaScriptName(String prefix, String attributeName)
-
forJavaScriptName
public TextAttributeDefinition forJavaScriptName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
-
forCSSName
public TextAttributeDefinition forCSSName(String attributeName)
-
forCSSName
public TextAttributeDefinition forCSSName(String prefix, String attributeName)
-
forCSSName
public TextAttributeDefinition forCSSName(char[] attributeName, int attributeNameOffset, int attributeNameLen)
-
-