Class JsonSchema.EnumProperty
java.lang.Object
org.springframework.data.rest.webmvc.json.JsonSchema.JsonSchemaProperty
org.springframework.data.rest.webmvc.json.JsonSchema.EnumProperty
- Enclosing class:
- JsonSchema
A
JsonSchema.JsonSchemaProperty
representing enumerations. Will cause all valid values to be rendered in a nested
enum property.- Since:
- 2.3
- Author:
- Oliver Gierke
-
Field Summary
Fields inherited from class org.springframework.data.rest.webmvc.json.JsonSchema.JsonSchemaProperty
description, format, items, pattern, reference, type, uniqueItems
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
getTitle()
boolean
protected JsonSchema.JsonSchemaProperty
withValues
(List<String> values) Returns the currentJsonSchema.EnumProperty
exposing the given values.Methods inherited from class org.springframework.data.rest.webmvc.json.JsonSchema.JsonSchemaProperty
asAssociation, with, withFormat, withPattern, withRegex, withType
-
Constructor Details
-
EnumProperty
-
EnumProperty
-
-
Method Details
-
getValues
-
withValues
Returns the currentJsonSchema.EnumProperty
exposing the given values.- Parameters:
values
- must not be null.- Returns:
-
getName
-
getTitle
-
isReadOnly
public boolean isReadOnly() -
withReadOnly
-