Package org.thymeleaf.linkbuilder
Enum StandardLinkBuilder.LinkType
- Object
-
- Enum<StandardLinkBuilder.LinkType>
-
- org.thymeleaf.linkbuilder.StandardLinkBuilder.LinkType
-
- All Implemented Interfaces:
Serializable
,Comparable<StandardLinkBuilder.LinkType>
- Enclosing class:
- StandardLinkBuilder
protected static enum StandardLinkBuilder.LinkType extends Enum<StandardLinkBuilder.LinkType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTE
BASE_RELATIVE
CONTEXT_RELATIVE
SERVER_RELATIVE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StandardLinkBuilder.LinkType
valueOf(String name)
Returns the enum constant of this type with the specified name.static StandardLinkBuilder.LinkType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSOLUTE
public static final StandardLinkBuilder.LinkType ABSOLUTE
-
CONTEXT_RELATIVE
public static final StandardLinkBuilder.LinkType CONTEXT_RELATIVE
-
SERVER_RELATIVE
public static final StandardLinkBuilder.LinkType SERVER_RELATIVE
-
BASE_RELATIVE
public static final StandardLinkBuilder.LinkType BASE_RELATIVE
-
-
Method Detail
-
values
public static StandardLinkBuilder.LinkType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StandardLinkBuilder.LinkType c : StandardLinkBuilder.LinkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StandardLinkBuilder.LinkType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-