Package org.thymeleaf.linkbuilder
Class AbstractLinkBuilder
Object
org.thymeleaf.linkbuilder.AbstractLinkBuilder
- All Implemented Interfaces:
ILinkBuilder
- Direct Known Subclasses:
StandardLinkBuilder
Base abstract implementation for link builders implementing the
ILinkBuilder
interface.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getName()
Returns the name of the link builder.final Integer
getOrder()
Return the order in which this link builder will be executed in the chain when several link builders are set for the same Template Engine.void
Sets a name for this link builder.void
Sets a new order for the link builder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.thymeleaf.linkbuilder.ILinkBuilder
buildLink
-
Constructor Details
-
AbstractLinkBuilder
protected AbstractLinkBuilder()
-
-
Method Details
-
getName
Description copied from interface:ILinkBuilder
Returns the name of the link builder.
- Specified by:
getName
in interfaceILinkBuilder
- Returns:
- the name of the link builder
-
setName
Sets a name for this link builder.
- Parameters:
name
- the new name
-
getOrder
Description copied from interface:ILinkBuilder
Return the order in which this link builder will be executed in the chain when several link builders are set for the same Template Engine.
- Specified by:
getOrder
in interfaceILinkBuilder
- Returns:
- the order of this builder in the chain.
-
setOrder
Sets a new order for the link builder.
- Parameters:
order
- the new order
-