Package org.thymeleaf.engine
Class OpenElementTag
- java.lang.Object
-
- org.thymeleaf.engine.AbstractTemplateEvent
-
- org.thymeleaf.engine.AbstractElementTag
-
- org.thymeleaf.engine.AbstractProcessableElementTag
-
- org.thymeleaf.engine.OpenElementTag
-
- All Implemented Interfaces:
IEngineTemplateEvent,IElementTag,IOpenElementTag,IProcessableElementTag,ITemplateEvent
final class OpenElementTag extends AbstractProcessableElementTag implements IOpenElementTag, IEngineTemplateEvent
- Since:
- 3.0.0
-
-
Field Summary
-
Fields inherited from class org.thymeleaf.engine.AbstractProcessableElementTag
attributes
-
Fields inherited from class org.thymeleaf.engine.AbstractElementTag
elementCompleteName, elementDefinition, synthetic, templateMode
-
Fields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName
-
-
Constructor Summary
Constructors Constructor Description OpenElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic)OpenElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic, java.lang.String templateName, int line, int col)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IModelVisitor visitor)Accept a visitor, implementation ofIModelVisitor.(package private) static OpenElementTagasEngineOpenElementTag(IOpenElementTag openElementTag)voidbeHandled(ITemplateHandler handler)(package private) OpenElementTagremoveAttribute(java.lang.String completeName)(package private) OpenElementTagremoveAttribute(java.lang.String prefix, java.lang.String name)(package private) OpenElementTagremoveAttribute(AttributeName attributeName)(package private) OpenElementTagreplaceAttribute(AttributeDefinitions attributeDefinitions, AttributeName oldName, AttributeDefinition newAttributeDefinition, java.lang.String completeNewName, java.lang.String value, AttributeValueQuotes valueQuotes)(package private) OpenElementTagsetAttribute(AttributeDefinitions attributeDefinitions, AttributeDefinition attributeDefinition, java.lang.String completeName, java.lang.String value, AttributeValueQuotes valueQuotes)voidwrite(java.io.Writer writer)Writes this event to the specifiedWriter.-
Methods inherited from class org.thymeleaf.engine.AbstractProcessableElementTag
getAllAttributes, getAssociatedProcessors, getAttribute, getAttribute, getAttribute, getAttributeMap, getAttributeValue, getAttributeValue, getAttributeValue, hasAssociatedProcessors, hasAttribute, hasAttribute, hasAttribute
-
Methods inherited from class org.thymeleaf.engine.AbstractElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSynthetic, toString
-
Methods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.model.IElementTag
getElementCompleteName, getElementDefinition, getTemplateMode, isSynthetic
-
Methods inherited from interface org.thymeleaf.model.IProcessableElementTag
getAllAttributes, getAttribute, getAttribute, getAttribute, getAttributeMap, getAttributeValue, getAttributeValue, getAttributeValue, hasAttribute, hasAttribute, hasAttribute
-
Methods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
-
-
-
Constructor Detail
-
OpenElementTag
OpenElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic)
-
OpenElementTag
OpenElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic, java.lang.String templateName, int line, int col)
-
-
Method Detail
-
setAttribute
OpenElementTag setAttribute(AttributeDefinitions attributeDefinitions, AttributeDefinition attributeDefinition, java.lang.String completeName, java.lang.String value, AttributeValueQuotes valueQuotes)
- Specified by:
setAttributein classAbstractProcessableElementTag
-
replaceAttribute
OpenElementTag replaceAttribute(AttributeDefinitions attributeDefinitions, AttributeName oldName, AttributeDefinition newAttributeDefinition, java.lang.String completeNewName, java.lang.String value, AttributeValueQuotes valueQuotes)
- Specified by:
replaceAttributein classAbstractProcessableElementTag
-
removeAttribute
OpenElementTag removeAttribute(java.lang.String prefix, java.lang.String name)
- Specified by:
removeAttributein classAbstractProcessableElementTag
-
removeAttribute
OpenElementTag removeAttribute(java.lang.String completeName)
- Specified by:
removeAttributein classAbstractProcessableElementTag
-
removeAttribute
OpenElementTag removeAttribute(AttributeName attributeName)
- Specified by:
removeAttributein classAbstractProcessableElementTag
-
accept
public void accept(IModelVisitor visitor)
Description copied from interface:ITemplateEventAccept a visitor, implementation of
IModelVisitor.- Specified by:
acceptin interfaceITemplateEvent- Parameters:
visitor- the visitor.
-
write
public void write(java.io.Writer writer) throws java.io.IOExceptionDescription copied from interface:ITemplateEventWrites this event to the specified
Writer.Template output performed at
OutputTemplateHandleris done by calling these methods at each of the events resulting from template processing.- Specified by:
writein interfaceITemplateEvent- Parameters:
writer- the writer this event should be written to.- Throws:
java.io.IOException- if an input/output exception occurs.
-
asEngineOpenElementTag
static OpenElementTag asEngineOpenElementTag(IOpenElementTag openElementTag)
-
beHandled
public void beHandled(ITemplateHandler handler)
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
-