Enum EMFModule.Feature
- java.lang.Object
-
- java.lang.Enum<EMFModule.Feature>
-
- org.eclipse.emfcloud.jackson.module.EMFModule.Feature
-
- All Implemented Interfaces:
Serializable,Comparable<EMFModule.Feature>
- Enclosing class:
- EMFModule
public static enum EMFModule.Feature extends Enum<EMFModule.Feature>
Enumeration that defines all possible options that can be used to customize the behaviour of the EMF Module.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTION_SERIALIZE_DEFAULT_VALUEOption used to indicate the module to serialize default attributes values.OPTION_SERIALIZE_TYPEOption used to indicate the module to use the default type serializer if none are provided.OPTION_USE_IDOption used to indicate the module to use the default ID serializer if none are provided.OPTION_USE_NAMES_FROM_EXTENDED_META_DATAOption used to indicate whether feature names specified inExtendedMetaDataannotations should be respected.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intcollectDefaults()booleanenabledByDefault()booleanenabledIn(int flags)intgetMask()static EMFModule.FeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static EMFModule.Feature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPTION_USE_ID
public static final EMFModule.Feature OPTION_USE_ID
Option used to indicate the module to use the default ID serializer if none are provided. The ID serializer used by default is IdSerializer.
-
OPTION_SERIALIZE_TYPE
public static final EMFModule.Feature OPTION_SERIALIZE_TYPE
Option used to indicate the module to use the default type serializer if none are provided. The type serializer used by default is ETypeSerializer.
-
OPTION_SERIALIZE_DEFAULT_VALUE
public static final EMFModule.Feature OPTION_SERIALIZE_DEFAULT_VALUE
Option used to indicate the module to serialize default attributes values. Default values are not serialized by default.
-
OPTION_USE_NAMES_FROM_EXTENDED_META_DATA
public static final EMFModule.Feature OPTION_USE_NAMES_FROM_EXTENDED_META_DATA
Option used to indicate whether feature names specified inExtendedMetaDataannotations should be respected.
-
-
Method Detail
-
values
public static EMFModule.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 (EMFModule.Feature c : EMFModule.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 EMFModule.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 nameNullPointerException- if the argument is null
-
collectDefaults
public static int collectDefaults()
-
enabledIn
public boolean enabledIn(int flags)
-
enabledByDefault
public boolean enabledByDefault()
-
getMask
public int getMask()
-
-