public class SchemaDefinitionImpl<T> extends Object implements SchemaDefinition<T>
SchemaDefinition for the json schema definition.| Constructor and Description |
|---|
SchemaDefinitionImpl(Class<T> pojo,
String jsonDef,
boolean alwaysAllowNull,
Map<String,String> properties,
boolean supportSchemaVersioning,
boolean jsr310ConversionEnabled,
SchemaReader<T> reader,
SchemaWriter<T> writer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysAllowNull()
get schema whether always allow null or not
|
String |
getJsonDef()
Get json schema definition
|
Class<T> |
getPojo()
Get pojo schema definition
|
Map<String,String> |
getProperties()
Get schema class
|
Optional<SchemaReader<T>> |
getSchemaReaderOpt() |
Optional<SchemaWriter<T>> |
getSchemaWriterOpt() |
boolean |
getSupportSchemaVersioning() |
boolean |
isJsr310ConversionEnabled() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic SchemaDefinitionImpl(Class<T> pojo, String jsonDef, boolean alwaysAllowNull, Map<String,String> properties, boolean supportSchemaVersioning, boolean jsr310ConversionEnabled, SchemaReader<T> reader, SchemaWriter<T> writer)
public boolean getAlwaysAllowNull()
getAlwaysAllowNull in interface SchemaDefinition<T>public boolean isJsr310ConversionEnabled()
isJsr310ConversionEnabled in interface SchemaDefinition<T>public String getJsonDef()
getJsonDef in interface SchemaDefinition<T>public Class<T> getPojo()
getPojo in interface SchemaDefinition<T>public boolean getSupportSchemaVersioning()
getSupportSchemaVersioning in interface SchemaDefinition<T>public Optional<SchemaReader<T>> getSchemaReaderOpt()
getSchemaReaderOpt in interface SchemaDefinition<T>public Optional<SchemaWriter<T>> getSchemaWriterOpt()
getSchemaWriterOpt in interface SchemaDefinition<T>public Map<String,String> getProperties()
getProperties in interface SchemaDefinition<T>Copyright © 2017–2020 Apache Software Foundation. All rights reserved.