public static enum Context.AttributeEndDelimiter extends Enum<Context.AttributeEndDelimiter>
| Enum Constant and Description |
|---|
DOUBLE_QUOTE
" |
NONE
Not in an attribute.
|
SINGLE_QUOTE
' |
SPACE_OR_TAG_END
A space or
> symbol. |
| Modifier and Type | Field and Description |
|---|---|
String |
text
The suffix of the attribute that is not part of the attribute value.
|
| Modifier and Type | Method and Description |
|---|---|
static Context.AttributeEndDelimiter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Context.AttributeEndDelimiter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Context.AttributeEndDelimiter NONE
public static final Context.AttributeEndDelimiter DOUBLE_QUOTE
"public static final Context.AttributeEndDelimiter SINGLE_QUOTE
'public static final Context.AttributeEndDelimiter SPACE_OR_TAG_END
> symbol.@Nullable public final String text
href="foo" the trailing double quote is part of the attribute but not part of the value.
Whereas for space delimited attributes like width=32, there is no non-empty suffix
that is part of the attribute but not part of the value.public static Context.AttributeEndDelimiter[] values()
for (Context.AttributeEndDelimiter c : Context.AttributeEndDelimiter.values()) System.out.println(c);
public static Context.AttributeEndDelimiter 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 null