Class SchemaProcessor
- java.lang.Object
-
- org.apache.johnzon.jsonschema.generator.SchemaProcessor
-
public class SchemaProcessor extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SchemaProcessor.Cache
static class
SchemaProcessor.InMemoryCache
static class
SchemaProcessor.Instance
private static class
SchemaProcessor.ParameterizedTypeImpl
static class
SchemaProcessor.ReflectionValueExtractor
-
Field Summary
Fields Modifier and Type Field Description private Class<?>
persistenceCapable
private boolean
setClassAsTitle
private boolean
useReflectionForDefaults
-
Constructor Summary
Constructors Constructor Description SchemaProcessor()
SchemaProcessor(boolean setClassAsTitle, boolean useReflectionForDefaults)
-
Method Summary
-
-
-
Field Detail
-
persistenceCapable
private final Class<?> persistenceCapable
-
setClassAsTitle
private final boolean setClassAsTitle
-
useReflectionForDefaults
private final boolean useReflectionForDefaults
-
-
Method Detail
-
mapSchemaFromClass
public Schema mapSchemaFromClass(Type model, SchemaProcessor.Cache cache)
-
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)
-
findDocAnnotation
protected Optional<Annotation> findDocAnnotation(Field f)
-
find
private Optional<String> find(String method, Annotation doc)
-
onIgnored
protected void onIgnored(Schema schema, Field f, SchemaProcessor.Cache cache)
-
createIgnorePredicate
protected BiPredicate<Type,String> createIgnorePredicate(Class<?> from)
-
isVisible
private boolean isVisible(AnnotatedElement elt, int modifiers)
-
isStringable
private boolean isStringable(Type model)
-
-