SerializerFeature (fastjson 1.1.26 API)

fastjson



com.alibaba.fastjson.serializer Enum SerializerFeature

java.lang.Object
  extended by java.lang.Enum<SerializerFeature>
      extended by com.alibaba.fastjson.serializer.SerializerFeature
All Implemented Interfaces:
Serializable, Comparable<SerializerFeature>

public enum SerializerFeature
extends Enum<SerializerFeature>

Author:
wenshao

Enum Constant Summary
 
Method Summary
static int
 int
static boolean
static SerializerFeature
static SerializerFeature[]
 
Methods inherited from class java.lang.Enum
 
Methods inherited from class java.lang.Object
 

Enum Constant Detail

QuoteFieldNames

public static final SerializerFeature QuoteFieldNames

UseSingleQuotes

public static final SerializerFeature UseSingleQuotes

WriteMapNullValue

public static final SerializerFeature WriteMapNullValue

WriteEnumUsingToString

public static final SerializerFeature WriteEnumUsingToString

UseISO8601DateFormat

public static final SerializerFeature UseISO8601DateFormat

WriteNullListAsEmpty

public static final SerializerFeature WriteNullListAsEmpty
Since:
1.1

WriteNullStringAsEmpty

public static final SerializerFeature WriteNullStringAsEmpty
Since:
1.1

WriteNullNumberAsZero

public static final SerializerFeature WriteNullNumberAsZero
Since:
1.1

WriteNullBooleanAsFalse

public static final SerializerFeature WriteNullBooleanAsFalse
Since:
1.1

SkipTransientField

public static final SerializerFeature SkipTransientField
Since:
1.1

SortField

public static final SerializerFeature SortField
Since:
1.1

WriteTabAsSpecial

public static final SerializerFeature WriteTabAsSpecial
Since:
1.1.1

PrettyFormat

public static final SerializerFeature PrettyFormat
Since:
1.1.2

WriteClassName

public static final SerializerFeature WriteClassName
Since:
1.1.2

DisableCircularReferenceDetect

public static final SerializerFeature DisableCircularReferenceDetect
Since:
1.1.6

WriteSlashAsSpecial

public static final SerializerFeature WriteSlashAsSpecial
Since:
1.1.9

BrowserCompatible

public static final SerializerFeature BrowserCompatible
Since:
1.1.10

WriteDateUseDateFormat

public static final SerializerFeature WriteDateUseDateFormat
Since:
1.1.14

NotWriteRootClassName

public static final SerializerFeature NotWriteRootClassName
Since:
1.1.15

DisableCheckSpecialChar

public static final SerializerFeature DisableCheckSpecialChar
Since:
1.1.19
Method Detail

values

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

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

valueOf

public static SerializerFeature 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

getMask

public final int getMask()

isEnabled

public static boolean isEnabled(int features,
                                SerializerFeature feature)

config

public static int config(int features,
                         SerializerFeature feature,
                         boolean state)


Copyright © 2012 Alibaba Group. All Rights Reserved.