Package com.github.fge.avro.translators
Class CustomSimpleTranslator
- java.lang.Object
-
- com.github.fge.avro.translators.AvroTranslator
-
- com.github.fge.avro.translators.CustomSimpleTranslator
-
public class CustomSimpleTranslator extends AvroTranslator
-
-
Field Summary
Fields Modifier and Type Field Description static AvroTranslatorBOOLEAN_INSTANCEstatic AvroTranslatorNULL_INSTANCEstatic AvroTranslatorNUMBER_INSTANCEstatic AvroTranslatorSTRING_INSTANCE-
Fields inherited from class com.github.fge.avro.translators.AvroTranslator
FACTORY
-
-
Constructor Summary
Constructors Constructor Description CustomSimpleTranslator(com.github.fge.jackson.NodeType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtranslate(org.apache.avro.Schema avroSchema, MutableTree jsonSchema, com.github.fge.jsonschema.core.report.ProcessingReport report)
-
-
-
Field Detail
-
STRING_INSTANCE
public static final AvroTranslator STRING_INSTANCE
-
NULL_INSTANCE
public static final AvroTranslator NULL_INSTANCE
-
NUMBER_INSTANCE
public static final AvroTranslator NUMBER_INSTANCE
-
BOOLEAN_INSTANCE
public static final AvroTranslator BOOLEAN_INSTANCE
-
-
Method Detail
-
translate
public void translate(org.apache.avro.Schema avroSchema, MutableTree jsonSchema, com.github.fge.jsonschema.core.report.ProcessingReport report) throws com.github.fge.jsonschema.core.exceptions.ProcessingException- Specified by:
translatein classAvroTranslator- Throws:
com.github.fge.jsonschema.core.exceptions.ProcessingException
-
-