com.badlogic.gdx.utils
Enum JsonWriter.OutputType

java.lang.Object
  extended by java.lang.Enum<JsonWriter.OutputType>
      extended by com.badlogic.gdx.utils.JsonWriter.OutputType
All Implemented Interfaces:
Serializable, Comparable<JsonWriter.OutputType>
Enclosing class:
JsonWriter

public static enum JsonWriter.OutputType
extends Enum<JsonWriter.OutputType>


Enum Constant Summary
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 necessary.
 
Method Summary
 String quoteName(String value)
           
 String quoteValue(Object value)
           
static JsonWriter.OutputType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JsonWriter.OutputType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

json

public static final JsonWriter.OutputType json
Normal JSON, with all its quotes.


javascript

public static final JsonWriter.OutputType javascript
Like JSON, but names are only quoted if necessary.


minimal

public static final JsonWriter.OutputType minimal
Like JSON, but names and values are only quoted if necessary.

Method Detail

values

public static JsonWriter.OutputType[] 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 (JsonWriter.OutputType c : JsonWriter.OutputType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JsonWriter.OutputType 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 name
NullPointerException - if the argument is null

quoteValue

public String quoteValue(Object value)

quoteName

public String quoteName(String value)


Copyright © 2013. All Rights Reserved.