Enum AttributeValueQuotes
- java.lang.Object
-
- java.lang.Enum<AttributeValueQuotes>
-
- com.vladsch.flexmark.ext.attributes.AttributeValueQuotes
-
- All Implemented Interfaces:
Serializable,Comparable<AttributeValueQuotes>
public enum AttributeValueQuotes extends Enum<AttributeValueQuotes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AS_ISDOUBLE_PREFERREDDOUBLE_QUOTESNO_QUOTES_DOUBLE_PREFERREDNO_QUOTES_SINGLE_PREFERREDSINGLE_PREFERREDSINGLE_QUOTES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringquotesFor(@NotNull CharSequence text, @NotNull CharSequence defaultQuotes)static AttributeValueQuotesvalueOf(String name)Returns the enum constant of this type with the specified name.static AttributeValueQuotes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AS_IS
public static final AttributeValueQuotes AS_IS
-
NO_QUOTES_SINGLE_PREFERRED
public static final AttributeValueQuotes NO_QUOTES_SINGLE_PREFERRED
-
NO_QUOTES_DOUBLE_PREFERRED
public static final AttributeValueQuotes NO_QUOTES_DOUBLE_PREFERRED
-
SINGLE_PREFERRED
public static final AttributeValueQuotes SINGLE_PREFERRED
-
DOUBLE_PREFERRED
public static final AttributeValueQuotes DOUBLE_PREFERRED
-
SINGLE_QUOTES
public static final AttributeValueQuotes SINGLE_QUOTES
-
DOUBLE_QUOTES
public static final AttributeValueQuotes DOUBLE_QUOTES
-
-
Method Detail
-
values
public static AttributeValueQuotes[] 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 (AttributeValueQuotes c : AttributeValueQuotes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeValueQuotes 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
-
quotesFor
@NotNull public @NotNull String quotesFor(@NotNull @NotNull CharSequence text, @NotNull @NotNull CharSequence defaultQuotes)
-
-