public static class JsonSchema.EnumProperty extends JsonSchema.JsonSchemaProperty
JsonSchema.JsonSchemaProperty
representing enumerations. Will cause all valid values to be rendered in a nested
enum property.description, format, items, pattern, reference, type, uniqueItems
Constructor and Description |
---|
EnumProperty(String name,
String title,
Class<?> type,
String description,
boolean required) |
EnumProperty(String name,
String title,
List<String> values,
String description,
boolean required) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getTitle() |
List<String> |
getValues() |
boolean |
isReadOnly() |
protected T |
withReadOnly() |
JsonSchema.EnumProperty |
withValues(List<String> values)
Returns the current
JsonSchema.EnumProperty exposing the given values. |
asAssociation, with, withFormat, withPattern, withRegex, withType
public EnumProperty(String name, String title, Class<?> type, String description, boolean required)
public JsonSchema.EnumProperty withValues(List<String> values)
JsonSchema.EnumProperty
exposing the given values.values
- must not be null.public String getName()
public String getTitle()
public boolean isReadOnly()
protected T withReadOnly()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.