Package org.apache.juneau.annotation
Class SchemaAnnotation.Builder
java.lang.Object
org.apache.juneau.annotation.AnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationBuilder
org.apache.juneau.annotation.TargetedAnnotationTBuilder
org.apache.juneau.annotation.TargetedAnnotationTMFBuilder
org.apache.juneau.annotation.SchemaAnnotation.Builder
- Enclosing class:
SchemaAnnotation
Builder class.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets theSchema._default()
property on this annotation.Sets theSchema._enum()
property on this annotation.Sets theSchema.$ref()
property on this annotation.additionalProperties
(String... value) Sets theSchema.additionalProperties()
property on this annotation.aev
(boolean value) Sets theSchema.aev()
property on this annotation.Sets theSchema.allOf()
property on this annotation.allowEmptyValue
(boolean value) Sets theSchema.allowEmptyValue()
property on this annotation.build()
Instantiates a new@Schema
object initialized with this builder.Sets theSchema.cf()
property on this annotation.collectionFormat
(String value) Sets theSchema.collectionFormat()
property on this annotation.Sets theSchema.d()
property on this annotation.description
(String... value) Sets theSchema.description()
property on this annotation.Sets theSchema.df()
property on this annotation.discriminator
(String value) Sets theSchema.discriminator()
property on this annotation.Sets theSchema.e()
property on this annotation.emax
(boolean value) Sets theSchema.emax()
property on this annotation.emin
(boolean value) Sets theSchema.emin()
property on this annotation.exclusiveMaximum
(boolean value) Sets theSchema.exclusiveMaximum()
property on this annotation.exclusiveMinimum
(boolean value) Sets theSchema.exclusiveMinimum()
property on this annotation.externalDocs
(ExternalDocs value) Sets theSchema.externalDocs()
property on this annotation.Sets theSchema.f()
property on this annotation.Sets theSchema.format()
property on this annotation.ignore
(boolean value) Sets theSchema.ignore()
property on this annotation.Sets theSchema.items()
property on this annotation.Sets theSchema.max()
property on this annotation.maxi
(long value) Sets theSchema.maxi()
property on this annotation.Sets theSchema.maximum()
property on this annotation.maxItems
(long value) Sets theSchema.maxItems()
property on this annotation.maxl
(long value) Sets theSchema.maxl()
property on this annotation.maxLength
(long value) Sets theSchema.maxLength()
property on this annotation.maxp
(long value) Sets theSchema.maxp()
property on this annotation.maxProperties
(long value) Sets theSchema.maxProperties()
property on this annotation.Sets theSchema.min()
property on this annotation.mini
(long value) Sets theSchema.mini()
property on this annotation.Sets theSchema.minimum()
property on this annotation.minItems
(long value) Sets theSchema.minItems()
property on this annotation.minl
(long value) Sets theSchema.minl()
property on this annotation.minLength
(long value) Sets theSchema.minLength()
property on this annotation.minp
(long value) Sets theSchema.minp()
property on this annotation.minProperties
(long value) Sets theSchema.minProperties()
property on this annotation.Sets theSchema.mo()
property on this annotation.multipleOf
(String value) Sets theSchema.multipleOf()
property on this annotation.Appends the classes that this annotation applies to.Appends the fields that this annotation applies to.Appends the methods that this annotation applies to.The targets this annotation applies to.Appends the classes that this annotation applies to.Sets theSchema.p()
property on this annotation.Sets theSchema.pattern()
property on this annotation.properties
(String... value) Sets theSchema.properties()
property on this annotation.r
(boolean value) Sets theSchema.r()
property on this annotation.readOnly
(boolean value) Sets theSchema.readOnly()
property on this annotation.required
(boolean value) Sets theSchema.required()
property on this annotation.ro
(boolean value) Sets theSchema.ro()
property on this annotation.sie
(boolean value) Sets theSchema.sie()
property on this annotation.skipIfEmpty
(boolean value) Sets theSchema.skipIfEmpty()
property on this annotation.Sets theSchema.t()
property on this annotation.Sets theSchema.title()
property on this annotation.Sets theSchema.type()
property on this annotation.ui
(boolean value) Sets theSchema.ui()
property on this annotation.uniqueItems
(boolean value) Sets theSchema.uniqueItems()
property on this annotation.Sets theSchema.xml()
property on this annotation.
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
build
Instantiates a new@Schema
object initialized with this builder.- Returns:
- A new
@Schema
object.
-
_default
Sets theSchema._default()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
_enum
Sets theSchema._enum()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
$ref
Sets theSchema.$ref()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
additionalProperties
Sets theSchema.additionalProperties()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
allOf
Sets theSchema.allOf()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
aev
Sets theSchema.aev()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
allowEmptyValue
Sets theSchema.allowEmptyValue()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
cf
Sets theSchema.cf()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
collectionFormat
Sets theSchema.collectionFormat()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
d
Sets theSchema.d()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
description
Sets theSchema.description()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
df
Sets theSchema.df()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
discriminator
Sets theSchema.discriminator()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
e
Sets theSchema.e()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
emax
Sets theSchema.emax()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
emin
Sets theSchema.emin()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMaximum
Sets theSchema.exclusiveMaximum()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMinimum
Sets theSchema.exclusiveMinimum()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
externalDocs
Sets theSchema.externalDocs()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
f
Sets theSchema.f()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
format
Sets theSchema.format()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
ignore
Sets theSchema.ignore()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
items
Sets theSchema.items()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
max
Sets theSchema.max()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxi
Sets theSchema.maxi()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maximum
Sets theSchema.maximum()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxItems
Sets theSchema.maxItems()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxl
Sets theSchema.maxl()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxLength
Sets theSchema.maxLength()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxp
Sets theSchema.maxp()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxProperties
Sets theSchema.maxProperties()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
min
Sets theSchema.min()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
mini
Sets theSchema.mini()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minimum
Sets theSchema.minimum()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minItems
Sets theSchema.minItems()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minl
Sets theSchema.minl()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minLength
Sets theSchema.minLength()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minp
Sets theSchema.minp()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minProperties
Sets theSchema.minProperties()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
mo
Sets theSchema.mo()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
multipleOf
Sets theSchema.multipleOf()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
p
Sets theSchema.p()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
pattern
Sets theSchema.pattern()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
properties
Sets theSchema.properties()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
r
Sets theSchema.r()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
readOnly
Sets theSchema.readOnly()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
required
Sets theSchema.required()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
ro
Sets theSchema.ro()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
sie
Sets theSchema.sie()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
skipIfEmpty
Sets theSchema.skipIfEmpty()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
t
Sets theSchema.t()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
title
Sets theSchema.title()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
type
Sets theSchema.type()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
ui
Sets theSchema.ui()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
uniqueItems
Sets theSchema.uniqueItems()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
xml
Sets theSchema.xml()
property on this annotation.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationBuilder
The targets this annotation applies to.- Overrides:
on
in classTargetedAnnotationTMFBuilder
- Parameters:
values
- The targets this annotation applies to.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationTBuilder
Appends the classes that this annotation applies to.- Overrides:
on
in classTargetedAnnotationTMFBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-
onClass
Description copied from class:TargetedAnnotationTBuilder
Appends the classes that this annotation applies to.- Overrides:
onClass
in classTargetedAnnotationTMFBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationTMFBuilder
Appends the fields that this annotation applies to.- Overrides:
on
in classTargetedAnnotationTMFBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-
on
Description copied from class:TargetedAnnotationTMFBuilder
Appends the methods that this annotation applies to.- Overrides:
on
in classTargetedAnnotationTMFBuilder
- Parameters:
value
- The values to append.- Returns:
- This object.
-