Package no.hasmac.jsonld
Enum JsonLdEmbed
- All Implemented Interfaces:
Serializable
,Comparable<JsonLdEmbed>
,java.lang.constant.Constable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways embed node objects as property values, unless this would cause a circular reference.Always use a node reference when serializing matching values.Only a single value within a given node object should be embedded, other values of other properties use a node reference. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonLdEmbed
Returns the enum constant of this type with the specified name.static JsonLdEmbed[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always embed node objects as property values, unless this would cause a circular reference. -
NEVER
Always use a node reference when serializing matching values. -
ONCE
Only a single value within a given node object should be embedded, other values of other properties use a node reference. This is the default value if neither @embed nor object embed flag is specified.
-
-
Constructor Details
-
JsonLdEmbed
private JsonLdEmbed()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-