public enum AnchorText extends Enum<AnchorText>
HtmlSerializer.HTML_uriAnchorText
setting.Enum Constant and Description |
---|
CONTEXT_RELATIVE
Same as
TO_STRING but assumes it's a context-relative path. |
LAST_TOKEN
Set to the last token of the URI value.
|
PATH_RELATIVE
Same as
TO_STRING but assumes it's a path-relative path. |
PROPERTY_NAME
Set to the bean property name.
|
SERVLET_RELATIVE
Same as
TO_STRING but assumes it's a servlet-relative path. |
TO_STRING
Set to whatever is returned by
Enum.toString() on the object. |
URI
Set to the URI value.
|
URI_ANCHOR
Set to the anchor of the URL.
|
Modifier and Type | Method and Description |
---|---|
static AnchorText |
valueOf(String name)
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.
|
public static final AnchorText TO_STRING
Enum.toString()
on the object.public static final AnchorText PROPERTY_NAME
public static final AnchorText URI
This is the same as TO_STRING
but strips off the anchor tag if present.
public static final AnchorText LAST_TOKEN
public static final AnchorText URI_ANCHOR
(e.g.
public static final AnchorText CONTEXT_RELATIVE
TO_STRING
but assumes it's a context-relative path.public static final AnchorText SERVLET_RELATIVE
TO_STRING
but assumes it's a servlet-relative path.public static final AnchorText PATH_RELATIVE
TO_STRING
but assumes it's a path-relative path.public static AnchorText[] values()
for (AnchorText c : AnchorText.values()) System.out.println(c);
public static AnchorText valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.