Class IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty
java.lang.Object
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.NumericJsonSchemaObject>
org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty
- All Implemented Interfaces:
JsonSchemaObject, JsonSchemaProperty
- Enclosing class:
IdentifiableJsonSchemaProperty<T extends JsonSchemaObject>
public static class IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty
extends IdentifiableJsonSchemaProperty<TypedJsonSchemaObject.NumericJsonSchemaObject>
Convenience
JsonSchemaProperty implementation for a type : 'number' property.- Since:
- 2.1
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from class IdentifiableJsonSchemaProperty
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty, IdentifiableJsonSchemaProperty.BooleanJsonSchemaProperty, IdentifiableJsonSchemaProperty.DateJsonSchemaProperty, IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty, IdentifiableJsonSchemaProperty.NullJsonSchemaProperty, IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty, IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty, IdentifiableJsonSchemaProperty.QueryableJsonSchemaProperty, IdentifiableJsonSchemaProperty.RequiredJsonSchemaProperty, IdentifiableJsonSchemaProperty.StringJsonSchemaProperty, IdentifiableJsonSchemaProperty.TimestampJsonSchemaProperty, IdentifiableJsonSchemaProperty.UntypedJsonSchemaPropertyNested classes/interfaces inherited from interface JsonSchemaObject
JsonSchemaObject.TypeNested classes/interfaces inherited from interface JsonSchemaProperty
JsonSchemaProperty.JsonSchemaPropertyBuilder -
Field Summary
Fields inherited from class IdentifiableJsonSchemaProperty
identifier, jsonSchemaObjectDelegate -
Constructor Summary
ConstructorsConstructorDescriptionNumericJsonSchemaProperty(String identifier, TypedJsonSchemaObject.NumericJsonSchemaObject schemaObject) -
Method Summary
Modifier and TypeMethodDescriptionallOf(Collection<JsonSchemaObject> allOf) allOf(JsonSchemaObject... allOf) anyOf(Collection<JsonSchemaObject> anyOf) anyOf(JsonSchemaObject... anyOf) description(String description) multipleOf(Number value) notMatch(JsonSchemaObject notMatch) oneOf(Collection<JsonSchemaObject> oneOf) oneOf(JsonSchemaObject... oneOf) possibleValues(Number... possibleValues) possibleValues(Collection<Number> possibleValues) Methods inherited from class IdentifiableJsonSchemaProperty
getIdentifier, getTypes, toDocumentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JsonSchemaProperty
isRequired
-
Constructor Details
-
NumericJsonSchemaProperty
public NumericJsonSchemaProperty(String identifier, TypedJsonSchemaObject.NumericJsonSchemaObject schemaObject) - Parameters:
identifier- identifier the property name or patternProperty regex. Must not be null nor empty.schemaObject- must not be null.
-
-
Method Details
-
multipleOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty multipleOf(Number value) - Parameters:
value- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
within
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty within(Range<? extends Number> range) - Parameters:
range- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
gt
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty gt(Number min) - Parameters:
min- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
gte
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty gte(Number min) - Parameters:
min- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
lt
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty lt(Number max) - Parameters:
max- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
lte
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty lte(Number max) - Parameters:
max- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
possibleValues
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty possibleValues(Number... possibleValues) - Parameters:
possibleValues- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
allOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty allOf(JsonSchemaObject... allOf) - Parameters:
allOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
anyOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty anyOf(JsonSchemaObject... anyOf) - Parameters:
anyOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
oneOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty oneOf(JsonSchemaObject... oneOf) - Parameters:
oneOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
possibleValues
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty possibleValues(Collection<Number> possibleValues) - Parameters:
possibleValues- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
allOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty allOf(Collection<JsonSchemaObject> allOf) - Parameters:
allOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
anyOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty anyOf(Collection<JsonSchemaObject> anyOf) - Parameters:
anyOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
oneOf
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty oneOf(Collection<JsonSchemaObject> oneOf) - Parameters:
oneOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
notMatch
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty notMatch(JsonSchemaObject notMatch) - Parameters:
notMatch- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
description
@Contract("_ -> new") public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty description(String description) - Parameters:
description- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
generatedDescription
- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-