public class SchemaStoreImpl extends com.google.common.collect.Ordering<Schema> implements SchemaStore
| Modifier and Type | Field and Description |
|---|---|
protected org.jsonschema2pojo.ContentResolver |
contentResolver |
protected org.jsonschema2pojo.FragmentResolver |
fragmentResolver |
protected Map<URI,Schema> |
schemas |
| Constructor and Description |
|---|
SchemaStoreImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
int |
compare(Schema left,
Schema right) |
Schema |
create(Schema parent,
String path) |
Schema |
create(URI uri) |
Optional<Schema> |
getById(URI id) |
Optional<Schema> |
getByUri(URI uri) |
Integer |
getFileUriCount() |
Integer |
getHttpUriCount() |
Iterator<Schema> |
getSchemaIterator() |
Integer |
getSize() |
com.fasterxml.jackson.databind.node.ObjectNode |
resolveItems(Schema schema,
com.fasterxml.jackson.databind.node.ObjectNode fieldNode,
String resourceId)
resolve full definition of 'items'.
|
com.fasterxml.jackson.databind.node.ObjectNode |
resolveProperties(Schema schema,
com.fasterxml.jackson.databind.node.ObjectNode fieldNode,
String resourceId) |
protected boolean |
selfReferenceWithoutParentFile(Schema parent,
String path) |
allEqual, arbitrary, binarySearch, compound, compound, explicit, explicit, from, from, greatestOf, greatestOf, immutableSortedCopy, isOrdered, isStrictlyOrdered, leastOf, leastOf, lexicographical, max, max, max, max, min, min, min, min, natural, nullsFirst, nullsLast, onResultOf, reverse, sortedCopy, usingToStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected org.jsonschema2pojo.FragmentResolver fragmentResolver
protected org.jsonschema2pojo.ContentResolver contentResolver
public Schema create(URI uri)
create in interface SchemaStorepublic Schema create(Schema parent, String path)
create in interface SchemaStoreprotected boolean selfReferenceWithoutParentFile(Schema parent, String path)
public void clearCache()
clearCache in interface SchemaStorepublic Integer getSize()
getSize in interface SchemaStorepublic Optional<Schema> getById(URI id)
getById in interface SchemaStorepublic Optional<Schema> getByUri(URI uri)
getByUri in interface SchemaStorepublic Integer getFileUriCount()
getFileUriCount in interface SchemaStorepublic Integer getHttpUriCount()
getHttpUriCount in interface SchemaStorepublic Iterator<Schema> getSchemaIterator()
getSchemaIterator in interface SchemaStorepublic com.fasterxml.jackson.databind.node.ObjectNode resolveProperties(Schema schema, com.fasterxml.jackson.databind.node.ObjectNode fieldNode, String resourceId)
resolveProperties in interface SchemaStorepublic com.fasterxml.jackson.databind.node.ObjectNode resolveItems(Schema schema, com.fasterxml.jackson.databind.node.ObjectNode fieldNode, String resourceId)
resolveItems in interface SchemaStoreschema - SchemafieldNode - ObjectNoderesourceId - resourceIdpublic int compare(Schema left, Schema right)
compare in interface Comparator<Schema>compare in interface SchemaStorecompare in class com.google.common.collect.Ordering<Schema>Copyright © 2020 The Apache Software Foundation. All rights reserved.