public class SchemaAnnotation extends Object implements Schema
Schema
annotation.
Annotations can be applied programmatically using BeanContextBuilder.annotations(Annotation...)
.
Constructor and Description |
---|
SchemaAnnotation()
Constructor.
|
SchemaAnnotation(String on)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String[] |
_default() |
SchemaAnnotation |
_default(String... value)
Sets the
|
String[] |
_enum() |
SchemaAnnotation |
_enum(String... value)
Sets the
|
String |
$ref() |
SchemaAnnotation |
$ref(String value)
Sets the
|
String[] |
additionalProperties() |
SchemaAnnotation |
additionalProperties(String... value)
Sets the
|
String[] |
allOf() |
SchemaAnnotation |
allOf(String... value)
Sets the
|
Class<? extends Annotation> |
annotationType() |
String |
cf() |
SchemaAnnotation |
cf(String value)
Sets the
|
String |
collectionFormat() |
SchemaAnnotation |
collectionFormat(String value)
Sets the
|
String[] |
d() |
SchemaAnnotation |
d(String... value)
Sets the
|
String[] |
description() |
SchemaAnnotation |
description(String... value)
Sets the
|
String[] |
df() |
SchemaAnnotation |
df(String... value)
Sets the
|
String |
discriminator() |
SchemaAnnotation |
discriminator(String value)
Sets the
|
String[] |
e() |
SchemaAnnotation |
e(String... value)
Sets the
|
boolean |
emax() |
SchemaAnnotation |
emax(boolean value)
Sets the
|
boolean |
emin() |
SchemaAnnotation |
emin(boolean value)
Sets the
|
String[] |
ex() |
SchemaAnnotation |
ex(String... value)
Sets the
|
String[] |
example() |
SchemaAnnotation |
example(String... value)
Sets the
|
String[] |
examples() |
SchemaAnnotation |
examples(String... value)
Sets the
|
boolean |
exclusiveMaximum() |
SchemaAnnotation |
exclusiveMaximum(boolean value)
Sets the
|
boolean |
exclusiveMinimum() |
SchemaAnnotation |
exclusiveMinimum(boolean value)
Sets the
|
String[] |
exs() |
SchemaAnnotation |
exs(String... value)
Sets the
|
ExternalDocs |
externalDocs() |
SchemaAnnotation |
externalDocs(ExternalDocs value)
Sets the
|
String |
f() |
SchemaAnnotation |
f(String value)
Sets the
|
String |
format() |
SchemaAnnotation |
format(String value)
Sets the
|
boolean |
ignore() |
SchemaAnnotation |
ignore(boolean value)
Sets the
|
Items |
items() |
SchemaAnnotation |
items(Items value)
Sets the
|
String |
max() |
SchemaAnnotation |
max(String value)
Sets the
|
long |
maxi() |
SchemaAnnotation |
maxi(long value)
Sets the
|
String |
maximum() |
SchemaAnnotation |
maximum(String value)
Sets the
|
long |
maxItems() |
SchemaAnnotation |
maxItems(long value)
Sets the
|
long |
maxl() |
SchemaAnnotation |
maxl(long value)
Sets the
|
long |
maxLength() |
SchemaAnnotation |
maxLength(long value)
Sets the
|
long |
maxp() |
SchemaAnnotation |
maxp(long value)
Sets the
|
long |
maxProperties() |
SchemaAnnotation |
maxProperties(long value)
Sets the
|
String |
min() |
SchemaAnnotation |
min(String value)
Sets the
|
long |
mini() |
SchemaAnnotation |
mini(long value)
Sets the
|
String |
minimum() |
SchemaAnnotation |
minimum(String value)
Sets the
|
long |
minItems() |
SchemaAnnotation |
minItems(long value)
Sets the
|
long |
minl() |
SchemaAnnotation |
minl(long value)
Sets the
|
long |
minLength() |
SchemaAnnotation |
minLength(long value)
Sets the
|
long |
minp() |
SchemaAnnotation |
minp(long value)
Sets the
|
long |
minProperties() |
SchemaAnnotation |
minProperties(long value)
Sets the
|
String |
mo() |
SchemaAnnotation |
mo(String value)
Sets the
|
String |
multipleOf() |
SchemaAnnotation |
multipleOf(String value)
Sets the
|
String |
on() |
SchemaAnnotation |
on(String value)
Sets the
|
String |
p() |
SchemaAnnotation |
p(String value)
Sets the
|
String |
pattern() |
SchemaAnnotation |
pattern(String value)
Sets the
|
String[] |
properties() |
SchemaAnnotation |
properties(String... value)
Sets the
|
boolean |
r() |
SchemaAnnotation |
r(boolean value)
Sets the
|
boolean |
readOnly() |
SchemaAnnotation |
readOnly(boolean value)
Sets the
|
boolean |
required() |
SchemaAnnotation |
required(boolean value)
Sets the
|
boolean |
ro() |
SchemaAnnotation |
ro(boolean value)
Sets the
|
String |
t() |
SchemaAnnotation |
t(String value)
Sets the
|
String |
title() |
SchemaAnnotation |
title(String value)
Sets the
|
String |
type() |
SchemaAnnotation |
type(String value)
Sets the
|
boolean |
ui() |
SchemaAnnotation |
ui(boolean value)
Sets the
|
boolean |
uniqueItems() |
SchemaAnnotation |
uniqueItems(boolean value)
Sets the
|
String[] |
value() |
SchemaAnnotation |
value(String... value)
Sets the
|
String[] |
xml() |
SchemaAnnotation |
xml(String... value)
Sets the
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, toString
public SchemaAnnotation(String on)
on
- The initial value for the Schema.on()
public SchemaAnnotation()
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
public SchemaAnnotation _default(String... value)
value
- The new value for this property.public SchemaAnnotation df(String... value)
value
- The new value for this property.public SchemaAnnotation _enum(String... value)
value
- The new value for this property.public SchemaAnnotation e(String... value)
value
- The new value for this property.public SchemaAnnotation $ref(String value)
value
- The new value for this property.public String[] additionalProperties()
public SchemaAnnotation additionalProperties(String... value)
value
- The new value for this property.public SchemaAnnotation allOf(String... value)
value
- The new value for this property.public String collectionFormat()
public SchemaAnnotation collectionFormat(String value)
value
- The new value for this property.public SchemaAnnotation cf(String value)
value
- The new value for this property.public String[] description()
public SchemaAnnotation description(String... value)
value
- The new value for this property.public SchemaAnnotation d(String... value)
value
- The new value for this property.public String discriminator()
public SchemaAnnotation discriminator(String value)
value
- The new value for this property.public SchemaAnnotation example(String... value)
value
- The new value for this property.public SchemaAnnotation ex(String... value)
value
- The new value for this property.public SchemaAnnotation examples(String... value)
value
- The new value for this property.public SchemaAnnotation exs(String... value)
value
- The new value for this property.public boolean exclusiveMaximum()
public SchemaAnnotation exclusiveMaximum(boolean value)
value
- The new value for this property.public boolean emax()
public SchemaAnnotation emax(boolean value)
value
- The new value for this property.public boolean exclusiveMinimum()
public SchemaAnnotation exclusiveMinimum(boolean value)
value
- The new value for this property.public boolean emin()
public SchemaAnnotation emin(boolean value)
value
- The new value for this property.public ExternalDocs externalDocs()
public SchemaAnnotation externalDocs(ExternalDocs value)
value
- The new value for this property.public SchemaAnnotation format(String value)
value
- The new value for this property.public SchemaAnnotation f(String value)
value
- The new value for this property.public boolean ignore()
public SchemaAnnotation ignore(boolean value)
value
- The new value for this property.public SchemaAnnotation items(Items value)
value
- The new value for this property.public SchemaAnnotation maximum(String value)
value
- The new value for this property.public SchemaAnnotation max(String value)
value
- The new value for this property.public long maxItems()
public SchemaAnnotation maxItems(long value)
value
- The new value for this property.public long maxi()
public SchemaAnnotation maxi(long value)
value
- The new value for this property.public long maxLength()
public SchemaAnnotation maxLength(long value)
value
- The new value for this property.public long maxl()
public SchemaAnnotation maxl(long value)
value
- The new value for this property.public long maxProperties()
public SchemaAnnotation maxProperties(long value)
value
- The new value for this property.public long maxp()
public SchemaAnnotation maxp(long value)
value
- The new value for this property.public SchemaAnnotation minimum(String value)
value
- The new value for this property.public SchemaAnnotation min(String value)
value
- The new value for this property.public long minItems()
public SchemaAnnotation minItems(long value)
value
- The new value for this property.public long mini()
public SchemaAnnotation mini(long value)
value
- The new value for this property.public long minLength()
public SchemaAnnotation minLength(long value)
value
- The new value for this property.public long minl()
public SchemaAnnotation minl(long value)
value
- The new value for this property.public long minProperties()
public SchemaAnnotation minProperties(long value)
value
- The new value for this property.public long minp()
public SchemaAnnotation minp(long value)
value
- The new value for this property.public String multipleOf()
public SchemaAnnotation multipleOf(String value)
value
- The new value for this property.public SchemaAnnotation mo(String value)
value
- The new value for this property.public SchemaAnnotation on(String value)
value
- The new value for this property.public SchemaAnnotation pattern(String value)
value
- The new value for this property.public SchemaAnnotation p(String value)
value
- The new value for this property.public String[] properties()
public SchemaAnnotation properties(String... value)
value
- The new value for this property.public boolean readOnly()
public SchemaAnnotation readOnly(boolean value)
value
- The new value for this property.public boolean ro()
public SchemaAnnotation ro(boolean value)
value
- The new value for this property.public boolean required()
public SchemaAnnotation required(boolean value)
value
- The new value for this property.public boolean r()
public SchemaAnnotation r(boolean value)
value
- The new value for this property.public SchemaAnnotation title(String value)
value
- The new value for this property.public SchemaAnnotation type(String value)
value
- The new value for this property.public SchemaAnnotation t(String value)
value
- The new value for this property.public boolean uniqueItems()
public SchemaAnnotation uniqueItems(boolean value)
value
- The new value for this property.public boolean ui()
public SchemaAnnotation ui(boolean value)
value
- The new value for this property.public SchemaAnnotation value(String... value)
value
- The new value for this property.public SchemaAnnotation xml(String... value)
value
- The new value for this property.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.