public static class IdentifiableJsonSchemaProperty.RequiredJsonSchemaProperty extends Object implements JsonSchemaProperty
JsonSchemaProperty implementation having a required flag for evaluation during schema
creation process.JsonSchemaProperty.JsonSchemaPropertyBuilderJsonSchemaObject.Type| 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.
|
boolean |
isRequired() |
org.bson.Document |
toDocument()
Get the MongoDB specific representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic String getIdentifier()
JsonSchemaPropertyTypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...).getIdentifier in interface JsonSchemaPropertypublic Set<JsonSchemaObject.Type> getTypes()
JsonSchemaObjectSet is likely to contain only one element in most cases.getTypes in interface JsonSchemaObjectpublic org.bson.Document toDocument()
JsonSchemaObjectDocument through the mapping infrastructure.toDocument in interface JsonSchemaObjectpublic boolean isRequired()
isRequired in interface JsonSchemaPropertyCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.