org.codehaus.jackson.map
Enum SerializationConfig.Feature

java.lang.Object
  extended by java.lang.Enum<SerializationConfig.Feature>
      extended by org.codehaus.jackson.map.SerializationConfig.Feature
All Implemented Interfaces:
Serializable, Comparable<SerializationConfig.Feature>
Enclosing class:
SerializationConfig

public static enum SerializationConfig.Feature
extends Enum<SerializationConfig.Feature>

Enumeration that defines togglable features that guide the serialization feature.


Enum Constant Summary
AUTO_DETECT_FIELDS
           
AUTO_DETECT_GETTERS
           
AUTO_DETECT_IS_GETTERS
           
CAN_OVERRIDE_ACCESS_MODIFIERS
           
FAIL_ON_EMPTY_BEANS
           
INDENT_OUTPUT
           
USE_ANNOTATIONS
          Feature that determines whether annotation introspection is used for configuration; if enabled, configured AnnotationIntrospector will be used: if disabled, no annotations are considered.
USE_STATIC_TYPING
           
WRAP_ROOT_VALUE
           
WRITE_DATES_AS_TIMESTAMPS
           
WRITE_NULL_PROPERTIES
           
 
Method Summary
static int collectDefaults()
          Method that calculates bit set (flags) of all features that are enabled by default.
 boolean enabledByDefault()
           
 int getMask()
           
static SerializationConfig.Feature valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SerializationConfig.Feature[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USE_ANNOTATIONS

public static final SerializationConfig.Feature USE_ANNOTATIONS
Feature that determines whether annotation introspection is used for configuration; if enabled, configured AnnotationIntrospector will be used: if disabled, no annotations are considered.

Feature is enabled by default.

Since:
1.2

AUTO_DETECT_GETTERS

public static final SerializationConfig.Feature AUTO_DETECT_GETTERS

AUTO_DETECT_IS_GETTERS

public static final SerializationConfig.Feature AUTO_DETECT_IS_GETTERS

AUTO_DETECT_FIELDS

public static final SerializationConfig.Feature AUTO_DETECT_FIELDS

CAN_OVERRIDE_ACCESS_MODIFIERS

public static final SerializationConfig.Feature CAN_OVERRIDE_ACCESS_MODIFIERS

WRITE_NULL_PROPERTIES

public static final SerializationConfig.Feature WRITE_NULL_PROPERTIES

USE_STATIC_TYPING

public static final SerializationConfig.Feature USE_STATIC_TYPING

WRAP_ROOT_VALUE

public static final SerializationConfig.Feature WRAP_ROOT_VALUE

FAIL_ON_EMPTY_BEANS

public static final SerializationConfig.Feature FAIL_ON_EMPTY_BEANS

WRITE_DATES_AS_TIMESTAMPS

public static final SerializationConfig.Feature WRITE_DATES_AS_TIMESTAMPS

INDENT_OUTPUT

public static final SerializationConfig.Feature INDENT_OUTPUT
Method Detail

values

public static SerializationConfig.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 (SerializationConfig.Feature c : SerializationConfig.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 SerializationConfig.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

collectDefaults

public static int collectDefaults()
Method that calculates bit set (flags) of all features that are enabled by default.


enabledByDefault

public boolean enabledByDefault()

getMask

public int getMask()