Package org.everit.json.schema
Class NumberSchema.Builder
- java.lang.Object
-
- org.everit.json.schema.Schema.Builder<NumberSchema>
-
- org.everit.json.schema.NumberSchema.Builder
-
- Enclosing class:
- NumberSchema
public static class NumberSchema.Builder extends Schema.Builder<NumberSchema>
Builder class forNumberSchema
.
-
-
Field Summary
-
Fields inherited from class org.everit.json.schema.Schema.Builder
unprocessedProperties
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NumberSchema
build()
NumberSchema.Builder
exclusiveMaximum(boolean exclusiveMaximum)
NumberSchema.Builder
exclusiveMaximum(Number exclusiveMaximumLimit)
NumberSchema.Builder
exclusiveMinimum(boolean exclusiveMinimum)
NumberSchema.Builder
exclusiveMinimum(Number exclusiveMimimumLimit)
NumberSchema.Builder
maximum(Number maximum)
NumberSchema.Builder
minimum(Number minimum)
NumberSchema.Builder
multipleOf(Number multipleOf)
NumberSchema.Builder
requiresInteger(boolean requiresInteger)
NumberSchema.Builder
requiresNumber(boolean requiresNumber)
-
Methods inherited from class org.everit.json.schema.Schema.Builder
defaultValue, description, id, nullable, readOnly, schemaLocation, schemaLocation, title, unprocessedProperties, writeOnly
-
-
-
-
Method Detail
-
build
public NumberSchema build()
- Specified by:
build
in classSchema.Builder<NumberSchema>
-
exclusiveMaximum
public NumberSchema.Builder exclusiveMaximum(boolean exclusiveMaximum)
-
exclusiveMinimum
public NumberSchema.Builder exclusiveMinimum(boolean exclusiveMinimum)
-
maximum
public NumberSchema.Builder maximum(Number maximum)
-
minimum
public NumberSchema.Builder minimum(Number minimum)
-
multipleOf
public NumberSchema.Builder multipleOf(Number multipleOf)
-
requiresInteger
public NumberSchema.Builder requiresInteger(boolean requiresInteger)
-
requiresNumber
public NumberSchema.Builder requiresNumber(boolean requiresNumber)
-
exclusiveMinimum
public NumberSchema.Builder exclusiveMinimum(Number exclusiveMimimumLimit)
-
exclusiveMaximum
public NumberSchema.Builder exclusiveMaximum(Number exclusiveMaximumLimit)
-
-