Enum SchemaKeyword.TagContent
- java.lang.Object
-
- java.lang.Enum<SchemaKeyword.TagContent>
-
- com.github.victools.jsonschema.generator.SchemaKeyword.TagContent
-
- All Implemented Interfaces:
Serializable
,Comparable<SchemaKeyword.TagContent>
- Enclosing class:
- SchemaKeyword
public static enum SchemaKeyword.TagContent extends Enum<SchemaKeyword.TagContent>
Type of content/values to be expected under a schema tag.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_OF_SCHEMAS
NAMED_SCHEMAS
NON_SCHEMA
SCHEMA
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaKeyword.TagContent
valueOf(String name)
Returns the enum constant of this type with the specified name.static SchemaKeyword.TagContent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCHEMA
public static final SchemaKeyword.TagContent SCHEMA
-
ARRAY_OF_SCHEMAS
public static final SchemaKeyword.TagContent ARRAY_OF_SCHEMAS
-
NAMED_SCHEMAS
public static final SchemaKeyword.TagContent NAMED_SCHEMAS
-
NON_SCHEMA
public static final SchemaKeyword.TagContent NON_SCHEMA
-
-
Method Detail
-
values
public static SchemaKeyword.TagContent[] 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 (SchemaKeyword.TagContent c : SchemaKeyword.TagContent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaKeyword.TagContent 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
-
-