Package org.thymeleaf.linkbuilder
Class AbstractLinkBuilder
- Object
-
- org.thymeleaf.linkbuilder.AbstractLinkBuilder
-
- All Implemented Interfaces:
ILinkBuilder
- Direct Known Subclasses:
StandardLinkBuilder
public abstract class AbstractLinkBuilder extends Object implements ILinkBuilder
Base abstract implementation for link builders implementing the
ILinkBuilder
interface.- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLinkBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the link builder.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
setName(String name)
Sets a name for this link builder.void
setOrder(Integer order)
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
-
-
-
-
Method Detail
-
getName
public final String 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
public void setName(String name)
Sets a name for this link builder.
- Parameters:
name
- the new name
-
getOrder
public final Integer 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
public void setOrder(Integer order)
Sets a new order for the link builder.
- Parameters:
order
- the new order
-
-