Package org.thymeleaf.engine
Class StandaloneElementTag
- java.lang.Object
-
- org.thymeleaf.engine.AbstractTemplateEvent
-
- org.thymeleaf.engine.AbstractElementTag
-
- org.thymeleaf.engine.AbstractProcessableElementTag
-
- org.thymeleaf.engine.StandaloneElementTag
-
- All Implemented Interfaces:
IEngineTemplateEvent,IElementTag,IProcessableElementTag,IStandaloneElementTag,ITemplateEvent
final class StandaloneElementTag extends AbstractProcessableElementTag implements IStandaloneElementTag, IEngineTemplateEvent
- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanminimized-
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 StandaloneElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic, boolean minimized)StandaloneElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic, boolean minimized, 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 StandaloneElementTagasEngineStandaloneElementTag(IStandaloneElementTag standaloneElementTag)voidbeHandled(ITemplateHandler handler)booleanisMinimized()(package private) StandaloneElementTagremoveAttribute(java.lang.String completeName)(package private) StandaloneElementTagremoveAttribute(java.lang.String prefix, java.lang.String name)(package private) StandaloneElementTagremoveAttribute(AttributeName attributeName)(package private) StandaloneElementTagreplaceAttribute(AttributeDefinitions attributeDefinitions, AttributeName oldName, AttributeDefinition newAttributeDefinition, java.lang.String completeNewName, java.lang.String value, AttributeValueQuotes valueQuotes)(package private) StandaloneElementTagsetAttribute(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
-
StandaloneElementTag
StandaloneElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic, boolean minimized)
-
StandaloneElementTag
StandaloneElementTag(TemplateMode templateMode, ElementDefinition elementDefinition, java.lang.String elementCompleteName, Attributes attributes, boolean synthetic, boolean minimized, java.lang.String templateName, int line, int col)
-
-
Method Detail
-
isMinimized
public boolean isMinimized()
- Specified by:
isMinimizedin interfaceIStandaloneElementTag
-
setAttribute
StandaloneElementTag setAttribute(AttributeDefinitions attributeDefinitions, AttributeDefinition attributeDefinition, java.lang.String completeName, java.lang.String value, AttributeValueQuotes valueQuotes)
- Specified by:
setAttributein classAbstractProcessableElementTag
-
replaceAttribute
StandaloneElementTag replaceAttribute(AttributeDefinitions attributeDefinitions, AttributeName oldName, AttributeDefinition newAttributeDefinition, java.lang.String completeNewName, java.lang.String value, AttributeValueQuotes valueQuotes)
- Specified by:
replaceAttributein classAbstractProcessableElementTag
-
removeAttribute
StandaloneElementTag removeAttribute(java.lang.String prefix, java.lang.String name)
- Specified by:
removeAttributein classAbstractProcessableElementTag
-
removeAttribute
StandaloneElementTag removeAttribute(java.lang.String completeName)
- Specified by:
removeAttributein classAbstractProcessableElementTag
-
removeAttribute
StandaloneElementTag 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.
-
asEngineStandaloneElementTag
static StandaloneElementTag asEngineStandaloneElementTag(IStandaloneElementTag standaloneElementTag)
-
beHandled
public void beHandled(ITemplateHandler handler)
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
-