Class AbstractProcessableElementTag
- All Implemented Interfaces:
IElementTag,IProcessableElementTag,ITemplateEvent
- Direct Known Subclasses:
OpenElementTag,StandaloneElementTag
- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IElementProcessor[](package private) final Attributesprivate static final IElementProcessor[]Fields inherited from class org.thymeleaf.engine.AbstractElementTag
elementCompleteName, elementDefinition, synthetic, templateModeFields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName -
Constructor Summary
ConstructorsConstructorDescriptionAbstractProcessableElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, Attributes attributes, boolean synthetic) AbstractProcessableElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, Attributes attributes, boolean synthetic, String templateName, int line, int col) -
Method Summary
Modifier and TypeMethodDescriptionprivate IElementProcessor[]Returns an array with all the attributes contained in the tag.(package private) IElementProcessor[]final IAttributegetAttribute(String completeName) Returns the object modelling a specific attribute in the tag (or null if it does not exist).final IAttributegetAttribute(String prefix, String name) Returns the object modelling a specific attribute in the tag (or null if it does not exist).final IAttributegetAttribute(AttributeName attributeName) Returns the object modelling a specific attribute in the tag (or null if it does not exist).Returns a Map containing all the attribute names+values in the tag.final StringgetAttributeValue(String completeName) Returns the value of a specific attribute in the tag (or null if it does not exist).final StringgetAttributeValue(String prefix, String name) Returns the value of a specific attribute in the tag (or null if it does not exist).final StringgetAttributeValue(AttributeName attributeName) Returns the value of a specific attribute in the tag (or null if it does not exist).(package private) booleanfinal booleanhasAttribute(String completeName) Returns whether an attribute is exists at the tag or not.final booleanhasAttribute(String prefix, String name) Returns whether an attribute is exists at the tag or not.final booleanhasAttribute(AttributeName attributeName) Returns whether an attribute is exists at the tag or not.(package private) abstract AbstractProcessableElementTagremoveAttribute(String completeName) (package private) abstract AbstractProcessableElementTagremoveAttribute(String prefix, String name) (package private) abstract AbstractProcessableElementTagremoveAttribute(AttributeName attributeName) (package private) abstract AbstractProcessableElementTagreplaceAttribute(AttributeDefinitions attributeDefinitions, AttributeName oldName, AttributeDefinition newAttributeDefinition, String completeNewName, String value, AttributeValueQuotes valueQuotes) (package private) abstract AbstractProcessableElementTagsetAttribute(AttributeDefinitions attributeDefinitions, AttributeDefinition attributeDefinition, String completeName, String value, AttributeValueQuotes valueQuotes) Methods inherited from class org.thymeleaf.engine.AbstractElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSynthetic, toStringMethods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.thymeleaf.model.IElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSyntheticMethods inherited from interface org.thymeleaf.model.ITemplateEvent
accept, getCol, getLine, getTemplateName, hasLocation, write
-
Field Details
-
EMPTY_ASSOCIATED_PROCESSORS
-
attributes
-
associatedProcessors
-
-
Constructor Details
-
AbstractProcessableElementTag
AbstractProcessableElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, Attributes attributes, boolean synthetic) -
AbstractProcessableElementTag
AbstractProcessableElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, String elementCompleteName, Attributes attributes, boolean synthetic, String templateName, int line, int col)
-
-
Method Details
-
hasAttribute
Description copied from interface:IProcessableElementTagReturns whether an attribute is exists at the tag or not.
- Specified by:
hasAttributein interfaceIProcessableElementTag- Parameters:
completeName- the complete name of the attribute that is being queried.- Returns:
- true if the attribute exists, false if not.
-
hasAttribute
Description copied from interface:IProcessableElementTagReturns whether an attribute is exists at the tag or not.
- Specified by:
hasAttributein interfaceIProcessableElementTag- Parameters:
prefix- the prefix of the attribute that is being queried (might be null).name- the name of tha attribute that is being queried.- Returns:
- true if the attribute exists, false if not.
-
hasAttribute
Description copied from interface:IProcessableElementTagReturns whether an attribute is exists at the tag or not.
- Specified by:
hasAttributein interfaceIProcessableElementTag- Parameters:
attributeName- the name of the attribute that is being queried.- Returns:
- true if the attribute exists, false if not.
-
getAttribute
Description copied from interface:IProcessableElementTagReturns the object modelling a specific attribute in the tag (or null if it does not exist).
- Specified by:
getAttributein interfaceIProcessableElementTag- Parameters:
completeName- the complete name of the attribute that is being queried.- Returns:
- the
IAttributefor the queried attribute, or null if it does not exist.
-
getAttribute
Description copied from interface:IProcessableElementTagReturns the object modelling a specific attribute in the tag (or null if it does not exist).
- Specified by:
getAttributein interfaceIProcessableElementTag- Parameters:
prefix- the prefix of the attribute that is being queried (might be null).name- the name of tha attribute that is being queried.- Returns:
- the
IAttributefor the queried attribute, or null if it does not exist.
-
getAttribute
Description copied from interface:IProcessableElementTagReturns the object modelling a specific attribute in the tag (or null if it does not exist).
- Specified by:
getAttributein interfaceIProcessableElementTag- Parameters:
attributeName- the name of the attribute that is being queried.- Returns:
- the
IAttributefor the queried attribute, or null if it does not exist.
-
getAttributeValue
Description copied from interface:IProcessableElementTagReturns the value of a specific attribute in the tag (or null if it does not exist).
- Specified by:
getAttributeValuein interfaceIProcessableElementTag- Parameters:
completeName- the complete name of the attribute that is being queried.- Returns:
- the value of the queried attribute, or null if it does not exist.
-
getAttributeValue
Description copied from interface:IProcessableElementTagReturns the value of a specific attribute in the tag (or null if it does not exist).
- Specified by:
getAttributeValuein interfaceIProcessableElementTag- Parameters:
prefix- the prefix of the attribute that is being queried (might be null).name- the name of tha attribute that is being queried.- Returns:
- the value of the queried attribute, or null if it does not exist.
-
getAttributeValue
Description copied from interface:IProcessableElementTagReturns the value of a specific attribute in the tag (or null if it does not exist).
- Specified by:
getAttributeValuein interfaceIProcessableElementTag- Parameters:
attributeName- the name of the attribute that is being queried.- Returns:
- the value of the queried attribute, or null if it does not exist.
-
getAllAttributes
Description copied from interface:IProcessableElementTagReturns an array with all the attributes contained in the tag.
This array is a defensive copy of the original data kept at the tag, and might be null if there are no attributes at the tag.
- Specified by:
getAllAttributesin interfaceIProcessableElementTag- Returns:
- the array of attributes.
-
getAttributeMap
Description copied from interface:IProcessableElementTagReturns a Map containing all the attribute names+values in the tag.
This array is a defensive copy of the original data kept at the tag, and might be null if there are no attributes at the tag.
- Specified by:
getAttributeMapin interfaceIProcessableElementTag- Returns:
- the map of attributes.
-
getAssociatedProcessors
IElementProcessor[] getAssociatedProcessors() -
hasAssociatedProcessors
boolean hasAssociatedProcessors() -
computeProcessors
-
setAttribute
abstract AbstractProcessableElementTag setAttribute(AttributeDefinitions attributeDefinitions, AttributeDefinition attributeDefinition, String completeName, String value, AttributeValueQuotes valueQuotes) -
replaceAttribute
abstract AbstractProcessableElementTag replaceAttribute(AttributeDefinitions attributeDefinitions, AttributeName oldName, AttributeDefinition newAttributeDefinition, String completeNewName, String value, AttributeValueQuotes valueQuotes) -
removeAttribute
-
removeAttribute
-
removeAttribute
-