Package org.incenp.linkml.core
Enum InliningMode
- java.lang.Object
-
- java.lang.Enum<InliningMode>
-
- org.incenp.linkml.core.InliningMode
-
- All Implemented Interfaces:
Serializable,Comparable<InliningMode>
public enum InliningMode extends Enum<InliningMode>
Represents the various modes of “inlining” instances of a class, in serialisations that do support inlining (e.g. JSON, YAML).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DICTInstances are inlined as a dictionary.IRRELEVANTInlining is not relevant (typically because the type is not even a class).LISTInstances are inlined as a list.NO_INLININGInstances are not inlined, but serialised as references instead.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InliningModevalueOf(String name)Returns the enum constant of this type with the specified name.static InliningMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IRRELEVANT
public static final InliningMode IRRELEVANT
Inlining is not relevant (typically because the type is not even a class).
-
NO_INLINING
public static final InliningMode NO_INLINING
Instances are not inlined, but serialised as references instead. This is only possible if their class defines a globally unique identifier.
-
LIST
public static final InliningMode LIST
Instances are inlined as a list.
-
DICT
public static final InliningMode DICT
Instances are inlined as a dictionary. This is only possible if their class defines an identifier (globally or locally unique).
-
-
Method Detail
-
values
public static InliningMode[] 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 (InliningMode c : InliningMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InliningMode 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
-
-