Package org.jsonschema2pojo
Class AnnotatorFactory
java.lang.Object
org.jsonschema2pojo.AnnotatorFactory
Factory object for creating
Annotators for all the supported
annotation styles.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotator(Class<? extends Annotator> clazz) Create a new customAnnotatorfrom the given class.getAnnotator(AnnotationStyle style) Create a newAnnotatorthat can create annotations according to the given style.getAnnotator(Annotator... annotators)
-
Constructor Details
-
AnnotatorFactory
-
-
Method Details
-
getAnnotator
Create a newAnnotatorthat can create annotations according to the given style.- Parameters:
style- the annotation style that dictates what kind of annotations are required.- Returns:
- an annotator matching to given style
-
getAnnotator
Create a new customAnnotatorfrom the given class.- Parameters:
clazz- A class implementingAnnotator.- Returns:
- an instance of the given annotator type
-
getAnnotator
-