public class SchemaFactoryImpl extends AbstractSchemaFactory implements SchemaFactory
| Constructor and Description |
|---|
SchemaFactoryImpl() |
getBaseType, getNames, getPluralName, getSchemaClass, getSchemaClass, getSchemaName, getSchemaName, getSchemaNames, getSingularName, typeStringMatchesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseType, getPluralName, getSchemaClass, getSchemaClass, getSchemaName, getSchemaName, getSchemaNames, getSingularName, typeStringMatchespublic String getId()
getId in interface SchemaFactorypublic Object getDefaultField()
public Schema registerSchema(Object obj)
registerSchema in interface SchemaFactoryprotected <T> void addToMap(Map<String,T> map, SchemaImpl key, T value)
public Schema getSchema(Class<?> clz)
getSchema in interface SchemaFactorypublic Schema parseSchema(String name)
parseSchema in interface SchemaFactoryprotected void processParent(SchemaImpl schema)
protected SchemaImpl schemaFromObject(Object obj)
protected io.github.ibuildthecloud.gdapi.factory.impl.SchemaFactoryImpl.SchemaType schemaTypeFromClass(Class<?> clz)
protected io.github.ibuildthecloud.gdapi.factory.impl.SchemaFactoryImpl.SchemaType schemaTypeFromString(String type)
protected SchemaImpl readSchema(String name)
protected FieldImpl getField(Class<?> clz, PropertyDescriptor prop)
protected void assignOptions(PropertyDescriptor prop, FieldImpl field, Field f)
protected void assignType(PropertyDescriptor prop, FieldImpl field, Field f)
protected void getTypes(Type type, List<FieldType.TypeAndName> types)
protected Field getFieldAnnotation(PropertyDescriptor prop)
@PostConstruct public void init()
public List<Schema> listSchemas()
listSchemas in interface SchemaFactorypublic Schema getSchema(String type)
getSchema in interface SchemaFactorypublic Class<?> getSchemaClass(String type)
getSchemaClass in interface SchemaFactorypublic List<SchemaPostProcessor> getPostProcessors()
public void setPostProcessors(List<SchemaPostProcessor> postProcessors)
public boolean isIncludeDefaultTypes()
public void setIncludeDefaultTypes(boolean includeDefaultTypes)
public boolean isWritableByDefault()
public void setWritableByDefault(boolean writableByDefault)
public void setId(String id)
Copyright © 2014. All rights reserved.