Class ITemplateEventExtensions
- java.lang.Object
-
- nz.net.ultraq.thymeleaf.layoutdialect.models.extensions.ITemplateEventExtensions
-
public class ITemplateEventExtensions extends Object
Meta-programming extensions to theITemplateEvent
class.- Author:
- zhanhb, Emanuel Rabina
-
-
Constructor Summary
Constructors Constructor Description ITemplateEventExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equals(ITemplateEvent event, Object other)
static boolean
isClosingElement(ITemplateEvent self)
Returns whether or not this event represents an opening element.static boolean
isClosingElementOf(ITemplateEvent self, String tagName)
Returns whether or not this event represents a closing element of the given name.static boolean
isOpeningElement(ITemplateEvent self)
Returns whether or not this event represents an opening element.static boolean
isOpeningElementOf(ITemplateEvent self, String tagName)
Returns whether or not this event represents an opening element of the given name.static boolean
isWhitespace(ITemplateEvent self)
Returns whether or not this event represents collapsible whitespace.
-
-
-
Method Detail
-
isClosingElement
public static boolean isClosingElement(ITemplateEvent self)
Returns whether or not this event represents an opening element.- Parameters:
self
-- Returns:
true
if this event is an opening tag.
-
isClosingElementOf
public static boolean isClosingElementOf(ITemplateEvent self, String tagName)
Returns whether or not this event represents a closing element of the given name.- Parameters:
self
-tagName
-- Returns:
true
if this event is a closing tag and has the given tag name.
-
isOpeningElement
public static boolean isOpeningElement(ITemplateEvent self)
Returns whether or not this event represents an opening element.- Parameters:
self
-- Returns:
true
if this event is an opening tag.
-
isOpeningElementOf
public static boolean isOpeningElementOf(ITemplateEvent self, String tagName)
Returns whether or not this event represents an opening element of the given name.- Parameters:
self
-tagName
-- Returns:
true
if this event is an opening tag and has the given tag name.
-
isWhitespace
public static boolean isWhitespace(ITemplateEvent self)
Returns whether or not this event represents collapsible whitespace.- Parameters:
self
-- Returns:
true
if this is a collapsible text node.
-
equals
public static boolean equals(@Nullable ITemplateEvent event, @Nullable Object other)
-
-