Package org.apache.juneau.annotation
Class SchemaAnnotation.Builder
java.lang.Object
org.apache.juneau.commons.annotation.AnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.BuilderT
org.apache.juneau.commons.annotation.AppliedAnnotationObject.BuilderTMF
org.apache.juneau.annotation.SchemaAnnotation.Builder
- Enclosing class:
- SchemaAnnotation
Builder class.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets theSchema.$comment()property on this annotation.Sets theSchema.$defs()property on this annotation.Sets theSchema.$id()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@Schemaobject initialized with this builder.Sets theSchema.cf()property on this annotation.collectionFormat(String value) Sets theSchema.collectionFormat()property on this annotation.Sets theSchema.const_()property on this annotation.contentEncoding(String value) Sets theSchema.contentEncoding()property on this annotation.contentMediaType(String value) Sets theSchema.contentMediaType()property on this annotation.Sets theSchema.d()property on this annotation.Sets theSchema.default_()property on this annotation.dependentRequired(String... value) Sets theSchema.dependentRequired()property on this annotation.dependentSchemas(String... value) Sets theSchema.dependentSchemas()property on this annotation.deprecatedProperty(boolean value) Sets theSchema.deprecatedProperty()property on this annotation.description(String... value) Sets the 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.Sets theSchema.else_()property on this annotation.emax(boolean value) Sets theSchema.emax()property on this annotation.emin(boolean value) Sets theSchema.emin()property on this annotation.Sets theSchema.enum_()property on this annotation.Sets theSchema.examples()property on this annotation.exclusiveMaximum(boolean value) Sets theSchema.exclusiveMaximum()property on this annotation.exclusiveMaximumValue(String value) Sets theSchema.exclusiveMaximumValue()property on this annotation.exclusiveMinimum(boolean value) Sets theSchema.exclusiveMinimum()property on this annotation.exclusiveMinimumValue(String value) Sets theSchema.exclusiveMinimumValue()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.Sets theSchema.if_()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.Appends the fields that this annotation applies to.on(MethodInfo... value) Appends the methods that this annotation applies to.Appends the classes that 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.prefixItems(String... value) Sets theSchema.prefixItems()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.then_()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.unevaluatedItems(String... value) Sets theSchema.unevaluatedItems()property on this annotation.unevaluatedProperties(String... value) Sets theSchema.unevaluatedProperties()property on this annotation.uniqueItems(boolean value) Sets theSchema.uniqueItems()property on this annotation.Sets theSchema.xml()property on this annotation.Methods inherited from class org.apache.juneau.commons.annotation.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
const_
Sets theSchema.const_()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
default_
Sets theSchema.default_()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
else_
Sets theSchema.else_()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.
-
if_
Sets theSchema.if_()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
then_
Sets theSchema.then_()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
$comment
Sets theSchema.$comment()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
$defs
Sets theSchema.$defs()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
$id
Sets theSchema.$id()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.
-
aev
Sets theSchema.aev()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.
-
allowEmptyValue
Sets theSchema.allowEmptyValue()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
build
Instantiates a new@Schemaobject initialized with this builder.- Returns:
- A new
@Schemaobject.
-
description
Sets the description 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.
-
contentEncoding
Sets theSchema.contentEncoding()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
contentMediaType
Sets theSchema.contentMediaType()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.
-
dependentRequired
Sets theSchema.dependentRequired()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
dependentSchemas
Sets theSchema.dependentSchemas()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
deprecatedProperty
Sets theSchema.deprecatedProperty()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.
-
examples
Sets theSchema.examples()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.
-
exclusiveMaximumValue
Sets theSchema.exclusiveMaximumValue()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.
-
exclusiveMinimumValue
Sets theSchema.exclusiveMinimumValue()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.
-
prefixItems
Sets theSchema.prefixItems()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.
-
unevaluatedItems
Sets theSchema.unevaluatedItems()property on this annotation.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
unevaluatedProperties
Sets theSchema.unevaluatedProperties()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:AppliedAnnotationObject.BuilderThe targets this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.Builder- Parameters:
value- The targets this annotation applies to.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderTAppends the classes that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderT- Parameters:
value- The values to append.- Returns:
- This object.
-
onClass
Description copied from class:AppliedAnnotationObject.BuilderTAppends the classes that this annotation applies to.- Overrides:
onClassin classAppliedAnnotationObject.BuilderT- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderTMFAppends the methods that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderTMF- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderTMFAppends the fields that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderTMF- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderTAppends the classes that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderT- Parameters:
value- The values to append.- Returns:
- This object.
-
onClass
Description copied from class:AppliedAnnotationObject.BuilderTAppends the classes that this annotation applies to.- Overrides:
onClassin classAppliedAnnotationObject.BuilderT- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderTMFAppends the fields that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderTMF- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderTMFAppends the methods that this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.BuilderTMF- Parameters:
value- The values to append.- Returns:
- This object.
-