| 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
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAnnotator
A default implementation of the Annotator interface that makes it easier to
plug in different Annotator implementations.
|
class |
CompositeAnnotator
An annotator (implementing the composite pattern) that can be used to compose
many annotators together.
|
class |
GsonAnnotator
Annotates generated Java types using Gson.
|
class |
Jackson1Annotator
Annotates generated Java types using the Jackson 1.x mapping annotations.
|
class |
Jackson2Annotator
Annotates generated Java types using the Jackson 2.x mapping annotations.
|
class |
NoopAnnotator
No-op annotator that produces no annotations.
|
| Modifier and Type | Method and Description |
|---|---|
Annotator |
AnnotatorFactory.getAnnotator(AnnotationStyle style)
Create a new
Annotator that can create annotations according to
the given style. |
Annotator |
AnnotatorFactory.getAnnotator(Class<? extends Annotator> clazz)
Create a new custom
Annotator from the given class. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotator> |
GenerationConfig.getCustomAnnotator()
Gets the 'customAnnotator' configuration option.
|
Class<? extends Annotator> |
DefaultGenerationConfig.getCustomAnnotator()
|
| Modifier and Type | Method and Description |
|---|---|
CompositeAnnotator |
AnnotatorFactory.getAnnotator(Annotator... annotators) |
| Modifier and Type | Method and Description |
|---|---|
Annotator |
AnnotatorFactory.getAnnotator(Class<? extends Annotator> clazz)
Create a new custom
Annotator from the given class. |
| Constructor and Description |
|---|
CompositeAnnotator(Annotator... annotators)
Create a new composite annotator, made up of a given set of child
annotators.
|
| Modifier and Type | Method and Description |
|---|---|
Annotator |
RuleFactory.getAnnotator()
Gets the annotator that will in apply annotations to the generated code
to allow correct serialization and deserialization, according to the
chosen annotation style.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RuleFactory.setAnnotator(Annotator annotator)
The annotator used to mark up Java types with any annotations that are
required to build JSON compatible types
|
| Constructor and Description |
|---|
RuleFactory(GenerationConfig generationConfig,
Annotator annotator,
SchemaStore schemaStore)
Create a new rule factory with the given generation config options.
|
Copyright © 2016. All rights reserved.