Package org.openbravo.service.json
Enum DataResolvingMode
- java.lang.Object
-
- java.lang.Enum<DataResolvingMode>
-
- org.openbravo.service.json.DataResolvingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<DataResolvingMode>
public enum DataResolvingMode extends Enum<DataResolvingMode>
Defines the different ways data should be resolved and converted to json to be usable by the client. Is used for example to convert a business object to a json data. Short means that only the id, identifier and active are converted, full means that the full business object is converted.- Author:
- mtaal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL
Defines that all information of a business object/data is returned.FULL_TRANSLATABLE
Defines that all information of a business object/data is returned.SHORT
Defines that only specific parts of a business object/data is returned.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataResolvingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataResolvingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHORT
public static final DataResolvingMode SHORT
Defines that only specific parts of a business object/data is returned.
-
FULL
public static final DataResolvingMode FULL
Defines that all information of a business object/data is returned.
-
FULL_TRANSLATABLE
public static final DataResolvingMode FULL_TRANSLATABLE
Defines that all information of a business object/data is returned. In case any of the properties of the object is translatable, it will look for its value translated to the context's language
-
-
Method Detail
-
values
public static DataResolvingMode[] 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 (DataResolvingMode c : DataResolvingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataResolvingMode 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
-
-