Class SchemaProcessor
java.lang.Object
org.apache.johnzon.jsonschema.generator.SchemaProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic classprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<?>private final booleanprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BiPredicate<Type,String> createIgnorePredicate(Class<?> from) private Stringdecapitalize(String name) private SchemadoMapSchemaFromClass(Type model, SchemaProcessor.Cache cache, SchemaProcessor.ReflectionValueExtractor reflectionValueExtractor, SchemaProcessor.Instance instance) private TypeextractRealType(Class<?> root, Type type) protected voidvoidfillSchema(Type rawModel, Schema schema, SchemaProcessor.Cache cache, SchemaProcessor.ReflectionValueExtractor reflectionValueExtractor, SchemaProcessor.Instance instance) find(String method, Annotation doc) protected Optional<Annotation>private Stringprivate Stringprivate voidgetOrCreateReusableObjectComponent(Class<?> from, Schema schema, SchemaProcessor.Cache cache, SchemaProcessor.ReflectionValueExtractor reflectionValueExtractor, SchemaProcessor.Instance instance) private voidhandleRequired(Schema schema, Supplier<String> nameSupplier) private booleanisStringable(Type model) private booleanisVisible(AnnotatedElement elt, int modifiers) mapSchemaFromClass(Type model) mapSchemaFromClass(Type model, SchemaProcessor.Cache cache) protected voidonIgnored(Schema schema, Field f, SchemaProcessor.Cache cache) private TyperesolveParameterizedType(Type type, Class<?> declaringClass) private TyperesolveType(Type type, Class<?> declaringClass) toResolvedTypes(Type clazz, int maxIt) private TypeunwrapType(Type rawModel)
-
Field Details
-
persistenceCapable
-
setClassAsTitle
private final boolean setClassAsTitle -
useReflectionForDefaults
private final boolean useReflectionForDefaults
-
-
Constructor Details
-
SchemaProcessor
public SchemaProcessor() -
SchemaProcessor
public SchemaProcessor(boolean setClassAsTitle, boolean useReflectionForDefaults)
-
-
Method Details
-
mapSchemaFromClass
-
mapSchemaFromClass
-
doMapSchemaFromClass
private Schema doMapSchemaFromClass(Type model, SchemaProcessor.Cache cache, SchemaProcessor.ReflectionValueExtractor reflectionValueExtractor, SchemaProcessor.Instance instance) -
fillSchema
public void fillSchema(Type rawModel, Schema schema, SchemaProcessor.Cache cache, SchemaProcessor.ReflectionValueExtractor reflectionValueExtractor, SchemaProcessor.Instance instance) -
getOrCreateReusableObjectComponent
private void getOrCreateReusableObjectComponent(Class<?> from, Schema schema, SchemaProcessor.Cache cache, SchemaProcessor.ReflectionValueExtractor reflectionValueExtractor, SchemaProcessor.Instance instance) -
fillMeta
-
findDocAnnotation
-
find
-
onIgnored
-
createIgnorePredicate
-
isVisible
-
unwrapType
-
isStringable
-
handleRequired
-
findFieldName
-
findMethodName
-
decapitalize
-
resolveType
-
resolveParameterizedType
-
toResolvedTypes
-
extractRealType
-