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 org.springframework.data.mongodb.core.schema.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 org.springframework.data.mongodb.core.schema.JsonSchemaObject
JsonSchemaObject.TypeNested classes/interfaces inherited from interface org.springframework.data.mongodb.core.schema.JsonSchemaProperty
JsonSchemaProperty.JsonSchemaPropertyBuilder -
Field Summary
Fields inherited from class org.springframework.data.mongodb.core.schema.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 org.springframework.data.mongodb.core.schema.IdentifiableJsonSchemaProperty
getIdentifier, getTypes, toDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mongodb.core.schema.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
- Parameters:
value- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
TypedJsonSchemaObject.NumericJsonSchemaObject.multipleOf
-
within
public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty within(Range<? extends Number> range) - Parameters:
range- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
gt
- Parameters:
min- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
gte
- Parameters:
min- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
lt
- Parameters:
max- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
lte
- Parameters:
max- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty possibleValues(Number... possibleValues) - Parameters:
possibleValues- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
allOf
- Parameters:
allOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
anyOf
- Parameters:
anyOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
oneOf
- Parameters:
oneOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
possibleValues
public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty possibleValues(Collection<Number> possibleValues) - Parameters:
possibleValues- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
allOf
public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty allOf(Collection<JsonSchemaObject> allOf) - Parameters:
allOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
anyOf
public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty anyOf(Collection<JsonSchemaObject> anyOf) - Parameters:
anyOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
oneOf
public IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty oneOf(Collection<JsonSchemaObject> oneOf) - Parameters:
oneOf- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
notMatch
- Parameters:
notMatch- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
description
- Parameters:
description- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-
generatedDescription
- Returns:
- new instance of
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty. - See Also:
-