public interface IProcessableElementTag extends IElementTag
Event interface defining a processable element tag, i.e an element tag on which processors can be applied (open, standalone).
Note that any implementations of this interface should be immutable.
Modifier and Type | Method and Description |
---|---|
IAttribute[] |
getAllAttributes()
Returns an array with all the attributes contained in the tag.
|
IAttribute |
getAttribute(AttributeName attributeName)
Returns the object modelling a specific attribute in the tag (or null if it does not exist).
|
IAttribute |
getAttribute(String completeName)
Returns the object modelling a specific attribute in the tag (or null if it does not exist).
|
IAttribute |
getAttribute(String prefix,
String name)
Returns the object modelling a specific attribute in the tag (or null if it does not exist).
|
Map<String,String> |
getAttributeMap()
Returns a Map containing all the attribute names+values in the tag.
|
String |
getAttributeValue(AttributeName attributeName)
Returns the value of a specific attribute in the tag (or null if it does not exist).
|
String |
getAttributeValue(String completeName)
Returns the value of a specific attribute in the tag (or null if it does not exist).
|
String |
getAttributeValue(String prefix,
String name)
Returns the value of a specific attribute in the tag (or null if it does not exist).
|
boolean |
hasAttribute(AttributeName attributeName)
Returns whether an attribute is exists at the tag or not.
|
boolean |
hasAttribute(String completeName)
Returns whether an attribute is exists at the tag or not.
|
boolean |
hasAttribute(String prefix,
String name)
Returns whether an attribute is exists at the tag or not.
|
getElementCompleteName, getElementDefinition, getTemplateMode, isSynthetic
accept, getCol, getLine, getTemplateName, hasLocation, write
IAttribute[] getAllAttributes()
Returns 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.
Map<String,String> getAttributeMap()
Returns 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.
boolean hasAttribute(String completeName)
Returns whether an attribute is exists at the tag or not.
completeName
- the complete name of the attribute that is being queried.boolean hasAttribute(String prefix, String name)
Returns whether an attribute is exists at the tag or not.
prefix
- the prefix of the attribute that is being queried (might be null).name
- the name of tha attribute that is being queried.boolean hasAttribute(AttributeName attributeName)
Returns whether an attribute is exists at the tag or not.
attributeName
- the name of the attribute that is being queried.IAttribute getAttribute(String completeName)
Returns the object modelling a specific attribute in the tag (or null if it does not exist).
completeName
- the complete name of the attribute that is being queried.IAttribute
for the queried attribute, or null if it does not exist.IAttribute getAttribute(String prefix, String name)
Returns the object modelling a specific attribute in the tag (or null if it does not exist).
prefix
- the prefix of the attribute that is being queried (might be null).name
- the name of tha attribute that is being queried.IAttribute
for the queried attribute, or null if it does not exist.IAttribute getAttribute(AttributeName attributeName)
Returns the object modelling a specific attribute in the tag (or null if it does not exist).
attributeName
- the name of the attribute that is being queried.IAttribute
for the queried attribute, or null if it does not exist.String getAttributeValue(String completeName)
Returns the value of a specific attribute in the tag (or null if it does not exist).
completeName
- the complete name of the attribute that is being queried.String getAttributeValue(String prefix, String name)
Returns the value of a specific attribute in the tag (or null if it does not exist).
prefix
- the prefix of the attribute that is being queried (might be null).name
- the name of tha attribute that is being queried.String getAttributeValue(AttributeName attributeName)
Returns the value of a specific attribute in the tag (or null if it does not exist).
attributeName
- the name of the attribute that is being queried.Copyright © 2016 The THYMELEAF team. All rights reserved.