Package | Description |
---|---|
org.jsonschema2pojo | |
org.jsonschema2pojo.rules |
Provides the schema rules which can be 'applied' to perform the code
generation steps associated with JSON schema nodes
|
org.jsonschema2pojo.util |
Modifier and Type | Field and Description |
---|---|
protected Map<URI,Schema> |
SchemaStore.schemas |
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaStore.create(Schema parent,
String path,
String refFragmentPathDelimiters)
Create or look up a new schema using the given schema as a parent and the
path as a relative reference.
|
Schema |
SchemaStore.create(URI id,
String refFragmentPathDelimiters)
Create or look up a new schema which has the given ID and read the
contents of the given ID as a URL.
|
Schema |
Schema.getGrandParent() |
Schema |
Schema.getParent() |
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaStore.create(Schema parent,
String path,
String refFragmentPathDelimiters)
Create or look up a new schema using the given schema as a parent and the
path as a relative reference.
|
protected boolean |
SchemaStore.selfReferenceWithoutParentFile(Schema parent,
String path) |
Constructor and Description |
---|
Schema(URI id,
com.fasterxml.jackson.databind.JsonNode content,
Schema parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
EnumRule.addEnumConstants(EnumDefinition enumDefinition,
com.sun.codemodel.JDefinedClass _enum,
Schema schema) |
com.sun.codemodel.JType |
EnumRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JClassContainer container,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JType |
SchemaRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode schemaNode,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JClassContainer generatableType,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JType |
TypeRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JClassContainer jClassContainer,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDefinedClass |
RequiredArrayRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass jclass,
Schema schema) |
com.sun.codemodel.JDefinedClass |
AdditionalPropertiesRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass jclass,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDefinedClass |
DynamicPropertiesRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass jclass,
Schema currentSchema)
This rule adds dynamic getter, setter and builder methods based on the properties and additional properties
defined in a schema.
|
com.sun.codemodel.JDefinedClass |
BuilderRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass instanceClass,
Schema currentSchema) |
com.sun.codemodel.JDefinedClass |
PropertiesRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass jclass,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDefinedClass |
ConstructorRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass instanceClass,
Schema currentSchema) |
com.sun.codemodel.JDefinedClass |
PropertyRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass jclass,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDocComment |
TitleRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDocCommentable generatableType,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDocComment |
DescriptionRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDocCommentable generatableType,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDocComment |
JavaNameRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDocCommentable generatableType,
Schema currentSchema) |
com.sun.codemodel.JDocCommentable |
RequiredRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDocCommentable generatableType,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDocComment |
CommentRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDocCommentable generatableType,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JDocCommentable |
NotRequiredRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDocCommentable generatableType,
Schema schema)
Applies this schema rule to take the not required code generation steps.
|
com.sun.codemodel.JFieldVar |
PatternRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JFieldVar field,
Schema currentSchema) |
com.sun.codemodel.JFieldVar |
ValidRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JFieldVar field,
Schema currentSchema) |
com.sun.codemodel.JFieldVar |
DefaultRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JFieldVar field,
Schema currentSchema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JFieldVar |
DigitsRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JFieldVar field,
Schema currentSchema) |
com.sun.codemodel.JFieldVar |
MinItemsMaxItemsRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JFieldVar field,
Schema currentSchema) |
com.sun.codemodel.JFieldVar |
MinLengthMaxLengthRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JFieldVar field,
Schema currentSchema) |
com.sun.codemodel.JFieldVar |
MinimumMaximumRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JFieldVar field,
Schema currentSchema) |
com.sun.codemodel.JClass |
ArrayRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JPackage jpackage,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JType |
ObjectRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JPackage _package,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JType |
FormatRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JType baseType,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
com.sun.codemodel.JType |
MediaRule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode mediaNode,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JType baseType,
Schema schema)
Applies this schema rule.
|
R |
Rule.apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
T generatableType,
Schema currentSchema)
Add whatever Java source is required to the given generatable to
represent this schema rule.
|
Modifier and Type | Method and Description |
---|---|
Schema |
ReflectionHelper.getSuperSchema(com.fasterxml.jackson.databind.JsonNode node,
Schema schema,
boolean followRefs) |
Modifier and Type | Method and Description |
---|---|
Schema |
ReflectionHelper.getSuperSchema(com.fasterxml.jackson.databind.JsonNode node,
Schema schema,
boolean followRefs) |
com.sun.codemodel.JType |
ReflectionHelper.getSuperType(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.sun.codemodel.JPackage jPackage,
Schema schema) |
Copyright © 2022. All rights reserved.