Package org.apache.juneau.html
Enum AnchorText
- All Implemented Interfaces:
Serializable
,Comparable<AnchorText>
,java.lang.constant.Constable
Identifies possible values for the
HtmlSerializer.Builder.uriAnchorText(AnchorText)
setting.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSame asTO_STRING
but assumes it's a context-relative path.Set to the last token of the URI value.Same asTO_STRING
but assumes it's a path-relative path.Set to the bean property name.Same asTO_STRING
but assumes it's a servlet-relative path.Set to whatever is returned byEnum.toString()
on the object.Set to the URI value.Set to the anchor of the URL. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnchorText
Returns the enum constant of this type with the specified name.static AnchorText[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TO_STRING
Set to whatever is returned byEnum.toString()
on the object. -
PROPERTY_NAME
Set to the bean property name. -
URI
Set to the URI value.This is the same as
TO_STRING
but strips off the anchor tag if present. -
LAST_TOKEN
Set to the last token of the URI value. -
URI_ANCHOR
Set to the anchor of the URL.(e.g.
"http://localhost:9080/foobar#anchorTextHere" ) -
CONTEXT_RELATIVE
Same asTO_STRING
but assumes it's a context-relative path. -
SERVLET_RELATIVE
Same asTO_STRING
but assumes it's a servlet-relative path. -
PATH_RELATIVE
Same asTO_STRING
but assumes it's a path-relative path.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-