Enum Class FormatConfiguration.Shape
- All Implemented Interfaces:
Serializable, Comparable<FormatConfiguration.Shape>, Constable
- Enclosing class:
FormatConfiguration
Shape values supported by format metadata.
- Since:
- 3.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo explicit shape preference.Array shape.Binary value shape.Boolean scalar shape.Natural shape for the value type.Numeric scalar shape.Floating-point numeric scalar shape.Integral numeric scalar shape.Object shape.POJO-like object shape.Any scalar shape.String scalar shape. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanstatic FormatConfiguration.ShapeReturns the enum constant of this class with the specified name.static FormatConfiguration.Shape[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BINARY
Binary value shape. -
BOOLEAN
Boolean scalar shape. -
NUMBER
Numeric scalar shape. -
NUMBER_FLOAT
Floating-point numeric scalar shape. -
NUMBER_INT
Integral numeric scalar shape. -
STRING
String scalar shape. -
SCALAR
Any scalar shape. -
ARRAY
Array shape. -
OBJECT
Object shape. -
ANY
No explicit shape preference. -
NATURAL
Natural shape for the value type. -
POJO
POJO-like object shape.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isNumeric
public boolean isNumeric()- Returns:
trueif this shape is numeric
-
isStructured
public boolean isStructured()- Returns:
trueif this shape is structured
-
isPojoShape
public boolean isPojoShape()- Returns:
trueif this shape should use POJO-like object handling- Since:
- 3.0
-