Class SchemaDocument
java.lang.Object
software.amazon.smithy.jsonschema.SchemaDocument
- All Implemented Interfaces:
 ToNode,ToSmithyBuilder<SchemaDocument>
Represents a JSON Schema document.
- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds a JSON Schema document. - 
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaDocument.Builderbuilder()Returns a builder used to create aSchemaDocument.booleangetDefinition(String pointer) Gets a schema definition from the "definitions" map using a JSON pointer.Gets all of the schema definitions defined in the "definitions" map.getExtension(String key) Gets an extension value by name.Gets all extensions of the schema document.Gets the "$id" keyword of the document.Gets the root schema definition.Gets the "$schema" keyword of the document.inthashCode()Take this object and create a builder that contains all of the current property values of this object.toNode()Converts a value to aNode. 
- 
Method Details
- 
builder
Returns a builder used to create aSchemaDocument.- Returns:
 - Returns the created builder.
 
 - 
toNode
Description copied from interface:ToNodeConverts a value to aNode. - 
toBuilder
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
 toBuilderin interfaceToSmithyBuilder<SchemaDocument>- Returns:
 - a builder for type T
 
 - 
getRootSchema
Gets the root schema definition.- Returns:
 - Returns the root schema.
 - See Also:
 
 - 
getIdKeyword
Gets the "$id" keyword of the document.- Returns:
 - Returns the optionally defined $id.
 - See Also:
 
 - 
getSchemaKeyword
Gets the "$schema" keyword of the document.- Returns:
 - Returns the optionally defined $schema.
 - See Also:
 
 - 
getDefinition
Gets a schema definition from the "definitions" map using a JSON pointer.The "root" schema is returned if
pointeris an empty string.- Parameters:
 pointer- JSON Schema pointer to retrieve.- Returns:
 - Returns the optionally found schema definition.
 
 - 
getDefinitions
Gets all of the schema definitions defined in the "definitions" map.- Returns:
 - Returns the defined schema definitions.
 - See Also:
 
 - 
getExtension
Gets an extension value by name.- Parameters:
 key- Name of the extension to retrieve.- Returns:
 - Returns the extension object.
 
 - 
getExtensions
Gets all extensions of the schema document.- Returns:
 - Returns the extensions added to the schema.
 
 - 
equals
 - 
hashCode
public int hashCode() 
 -