Feature (fastjson 1.1.26 API)

fastjson



com.alibaba.fastjson.parser Enum Feature

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

public enum Feature
extends Enum<Feature>

Author:
wenshao

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

Enum Constant Detail

AutoCloseSource

public static final Feature AutoCloseSource

AllowComment

public static final Feature AllowComment

AllowUnQuotedFieldNames

public static final Feature AllowUnQuotedFieldNames

AllowSingleQuotes

public static final Feature AllowSingleQuotes

InternFieldNames

public static final Feature InternFieldNames

AllowISO8601DateFormat

public static final Feature AllowISO8601DateFormat

AllowArbitraryCommas

public static final Feature AllowArbitraryCommas
{"a":1,,,"b":2}


UseBigDecimal

public static final Feature UseBigDecimal

IgnoreNotMatch

public static final Feature IgnoreNotMatch
Since:
1.1.2

SortFeidFastMatch

public static final Feature SortFeidFastMatch
Since:
1.1.3

DisableASM

public static final Feature DisableASM
Since:
1.1.3

DisableCircularReferenceDetect

public static final Feature DisableCircularReferenceDetect
Since:
1.1.7

InitStringFieldAsEmpty

public static final Feature InitStringFieldAsEmpty
Since:
1.1.10
Method Detail

values

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

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

valueOf

public static Feature 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,
                                Feature feature)

config

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


Copyright © 2012 Alibaba Group. All Rights Reserved.