com.fasterxml.jackson.core.FormatSchema Java Examples
The following examples show how to use
com.fasterxml.jackson.core.FormatSchema.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomProtobufParser.java From caravan with Apache License 2.0 | 5 votes |
@Override public void setSchema(FormatSchema schema) { if (!(schema instanceof ProtobufSchema)) { throw new IllegalArgumentException("Can not use FormatSchema of type " +schema.getClass().getName()); } setSchema((ProtobufSchema) schema); }
Example #2
Source File: CustomProtobufParser.java From caravan with Apache License 2.0 | 4 votes |
@Override public boolean canUseSchema(FormatSchema schema) { return schema instanceof ProtobufSchema; }
Example #3
Source File: JsonParserDecorator.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
@Override public void setSchema(final FormatSchema schema) { jsonParser.setSchema(schema); }
Example #4
Source File: JsonParserDecorator.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
@Override public FormatSchema getSchema() { return jsonParser.getSchema(); }
Example #5
Source File: JsonParserDecorator.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
@Override public boolean canUseSchema(final FormatSchema schema) { return jsonParser.canUseSchema(schema); }
Example #6
Source File: JacksonParser.java From JsonSurfer with MIT License | 4 votes |
public JacksonParser(JsonFactory factory, FormatSchema formatSchema) { this.factory = factory; this.formatSchema = formatSchema; }