public enum OutputType extends Enum<OutputType>
| Enum Constant and Description |
|---|
javascript
Like JSON, but names are only quoted if necessary.
|
json
Normal JSON, with all its quotes.
|
minimal
Like JSON, but names and values are only quoted if they don't contain
\r\n\t or space and don't
begin with {}[]:,". |
| Modifier and Type | Method and Description |
|---|---|
String |
quoteName(String value) |
String |
quoteValue(Object value) |
static OutputType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutputType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutputType json
public static final OutputType javascript
public static final OutputType minimal
\r\n\t or space and don't
begin with {}[]:,". Additionally, names cannot contain : and values cannot contain
}],.public static OutputType[] values()
for (OutputType c : OutputType.values()) System.out.println(c);
public static OutputType 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 © 2014. All Rights Reserved.