Interface SchemaDefinition<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> SchemaDefinitionBuilder<T>
builder()
Get a new builder instance that can used to configure and build aSchemaDefinition
instance.boolean
getAlwaysAllowNull()
Get schema whether always allow null or not.java.lang.String
getJsonDef()
Get json schema definition.java.lang.Class<T>
getPojo()
Get pojo schema definition.java.util.Map<java.lang.String,java.lang.String>
getProperties()
Get schema class.java.util.Optional<SchemaReader<T>>
getSchemaReaderOpt()
Get a configured schema reader.java.util.Optional<SchemaWriter<T>>
getSchemaWriterOpt()
Get a configured schema writer.boolean
getSupportSchemaVersioning()
Get supportSchemaVersioning schema definition.boolean
isJsr310ConversionEnabled()
Get JSR310 conversion enabled.
-
-
-
Method Detail
-
builder
static <T> SchemaDefinitionBuilder<T> builder()
Get a new builder instance that can used to configure and build aSchemaDefinition
instance.- Returns:
- the
SchemaDefinition
-
getAlwaysAllowNull
boolean getAlwaysAllowNull()
Get schema whether always allow null or not.- Returns:
- schema always null or not
-
isJsr310ConversionEnabled
boolean isJsr310ConversionEnabled()
Get JSR310 conversion enabled.- Returns:
- return true if enable JSR310 conversion. false means use Joda time conversion.
-
getProperties
java.util.Map<java.lang.String,java.lang.String> getProperties()
Get schema class.- Returns:
- schema class
-
getJsonDef
java.lang.String getJsonDef()
Get json schema definition.- Returns:
- schema class
-
getPojo
java.lang.Class<T> getPojo()
Get pojo schema definition.- Returns:
- pojo schema
-
getSupportSchemaVersioning
boolean getSupportSchemaVersioning()
Get supportSchemaVersioning schema definition.- Returns:
- the flag of supportSchemaVersioning
-
getSchemaReaderOpt
java.util.Optional<SchemaReader<T>> getSchemaReaderOpt()
Get a configured schema reader.- Returns:
- optional containing configured schema reader or empty optional if none is configure
-
getSchemaWriterOpt
java.util.Optional<SchemaWriter<T>> getSchemaWriterOpt()
Get a configured schema writer.- Returns:
- optional containing configured schema writer or empty optional if none is configure
-
-