public class IdentifiableJsonSchemaProperty<T extends JsonSchemaObject> extends Object implements JsonSchemaProperty
JsonSchemaProperty
implementation.Modifier and Type | Class and Description |
---|---|
static class |
IdentifiableJsonSchemaProperty.ArrayJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'array' property. |
static class |
IdentifiableJsonSchemaProperty.BooleanJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'boolean' property. |
static class |
IdentifiableJsonSchemaProperty.DateJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'date' property. |
static class |
IdentifiableJsonSchemaProperty.EncryptedJsonSchemaProperty
JsonSchemaProperty implementation for encrypted fields. |
static class |
IdentifiableJsonSchemaProperty.NullJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'null' property. |
static class |
IdentifiableJsonSchemaProperty.NumericJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'number' property. |
static class |
IdentifiableJsonSchemaProperty.ObjectJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'object' property. |
static class |
IdentifiableJsonSchemaProperty.RequiredJsonSchemaProperty
Delegating
JsonSchemaProperty implementation having a required flag for evaluation during schema
creation process. |
static class |
IdentifiableJsonSchemaProperty.StringJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'string' property. |
static class |
IdentifiableJsonSchemaProperty.TimestampJsonSchemaProperty
Convenience
JsonSchemaProperty implementation for a type : 'timestamp' property. |
static class |
IdentifiableJsonSchemaProperty.UntypedJsonSchemaProperty
Convenience
JsonSchemaProperty implementation without a type property. |
JsonSchemaProperty.JsonSchemaPropertyBuilder
JsonSchemaObject.Type
Modifier and Type | Field and Description |
---|---|
protected String |
identifier |
protected T |
jsonSchemaObjectDelegate |
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
The identifier can be either the property name or the regex expression properties have to match when used along
with
TypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...) . |
Set<JsonSchemaObject.Type> |
getTypes()
Get the set of types defined for this schema element.
|
org.bson.Document |
toDocument()
Get the MongoDB specific representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected final String identifier
protected final T extends JsonSchemaObject jsonSchemaObjectDelegate
public String getIdentifier()
JsonSchemaProperty
TypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...)
.getIdentifier
in interface JsonSchemaProperty
public org.bson.Document toDocument()
JsonSchemaObject
Document
through the mapping infrastructure.toDocument
in interface JsonSchemaObject
public Set<JsonSchemaObject.Type> getTypes()
JsonSchemaObject
Set
is likely to contain only one element in most cases.getTypes
in interface JsonSchemaObject
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.