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, usingToString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected org.jsonschema2pojo.FragmentResolver fragmentResolver
protected org.jsonschema2pojo.ContentResolver contentResolver
public Schema create(URI uri)
create
in interface SchemaStore
public Schema create(Schema parent, String path)
create
in interface SchemaStore
protected boolean selfReferenceWithoutParentFile(Schema parent, String path)
public void clearCache()
clearCache
in interface SchemaStore
public Integer getSize()
getSize
in interface SchemaStore
public Optional<Schema> getById(URI id)
getById
in interface SchemaStore
public Optional<Schema> getByUri(URI uri)
getByUri
in interface SchemaStore
public Integer getFileUriCount()
getFileUriCount
in interface SchemaStore
public Integer getHttpUriCount()
getHttpUriCount
in interface SchemaStore
public Iterator<Schema> getSchemaIterator()
getSchemaIterator
in interface SchemaStore
public com.fasterxml.jackson.databind.node.ObjectNode resolveProperties(Schema schema, com.fasterxml.jackson.databind.node.ObjectNode fieldNode, String resourceId)
resolveProperties
in interface SchemaStore
public com.fasterxml.jackson.databind.node.ObjectNode resolveItems(Schema schema, com.fasterxml.jackson.databind.node.ObjectNode fieldNode, String resourceId)
resolveItems
in interface SchemaStore
schema
- SchemafieldNode
- ObjectNoderesourceId
- resourceIdpublic int compare(Schema left, Schema right)
compare
in interface Comparator<Schema>
compare
in interface SchemaStore
compare
in class com.google.common.collect.Ordering<Schema>
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.