Enum AttributeValueQuotes
- java.lang.Object
-
- java.lang.Enum<AttributeValueQuotes>
-
- com.vladsch.flexmark.ext.attributes.AttributeValueQuotes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AttributeValueQuotes>
public enum AttributeValueQuotes extends java.lang.Enum<AttributeValueQuotes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AS_IS
DOUBLE_PREFERRED
DOUBLE_QUOTES
NO_QUOTES_DOUBLE_PREFERRED
NO_QUOTES_SINGLE_PREFERRED
SINGLE_PREFERRED
SINGLE_QUOTES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
quotesFor(java.lang.CharSequence text, java.lang.CharSequence defaultQuotes)
static AttributeValueQuotes
valueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
quotesFor
@NotNull public java.lang.String quotesFor(@NotNull java.lang.CharSequence text, @NotNull java.lang.CharSequence defaultQuotes)
-
-