|
ModeShape Distribution 3.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.schematic.internal.schema.SchemaDocumentCache
@ThreadSafe public class SchemaDocumentCache
A cache of SchemaDocument instances that each have a validator that can
validate JSON Documents. When a SchemaDocument is needed and has not yet been loaded, this cache finds the corresponding JSON
Schema documents from the DocumentLibrary, and uses a factory to create the
Validator.
| Constructor Summary | |
|---|---|
SchemaDocumentCache(DocumentLibrary jsonSchemaDocuments,
String defaultMetaSchemaUri)
|
|
| Method Summary | |
|---|---|
protected Validator.Factory |
createFactory(URI schemaRefUri,
Problems problems)
|
SchemaDocument |
get(String uri,
Problems problems)
Find the JSON Schema document with the supplied URI, and build the in-memory representation
(including the validator. |
boolean |
remove(String uri)
Remove any SchemaDocument that was loaded into this cache. |
void |
removeAll()
Remove all SchemaDocument loaded into this cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaDocumentCache(DocumentLibrary jsonSchemaDocuments,
String defaultMetaSchemaUri)
| Method Detail |
|---|
public SchemaDocument get(String uri,
Problems problems)
in-memory representation
(including the validator.
get in interface Validator.SchemaDocumentResolveruri - the URI of the schema being readproblems - the object for recording any problems encountered while loading the schema
Document representation, or null if there were fatal errorspublic boolean remove(String uri)
SchemaDocument that was loaded into this cache.
uri - the URI of the schema being read
public void removeAll()
SchemaDocument loaded into this cache.
protected Validator.Factory createFactory(URI schemaRefUri,
Problems problems)
|
ModeShape Distribution 3.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||