Package | Description |
---|---|
org.modeshape.connector.filesystem | |
org.modeshape.connector.git | |
org.modeshape.connector.meta.jdbc | |
org.modeshape.jcr | |
org.modeshape.jcr.cache.document | |
org.modeshape.jcr.federation | |
org.modeshape.jcr.index.elasticsearch.client | |
org.modeshape.jcr.spi.federation |
This package provides a Service Provider Interface (SPI) for connectors to external systems.
|
org.modeshape.persistence.file |
The classes that make up the file system persistence provider.
|
org.modeshape.persistence.relational |
The classes that make up the relational persistence provider.
|
org.modeshape.schematic | |
org.modeshape.schematic.document | |
org.modeshape.schematic.internal | |
org.modeshape.schematic.internal.document | |
org.modeshape.schematic.internal.schema |
Modifier and Type | Method and Description |
---|---|
Document |
FileSystemConnector.getChildren(PageKey pageKey) |
Document |
FileSystemConnector.getDocumentById(String id) |
Modifier and Type | Method and Description |
---|---|
void |
FileSystemConnector.storeDocument(Document document) |
Modifier and Type | Method and Description |
---|---|
Document |
GitTree.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
Document |
GitTags.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
Document |
GitRoot.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
Document |
GitHistory.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
abstract Document |
GitFunction.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
Document |
GitCommitDetails.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
Document |
GitBranches.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
DocumentWriter writer,
Values values) |
Document |
PageableGitFunction.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
PageWriter writer,
Values values,
PageKey pageKey) |
Document |
GitTree.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
PageWriter writer,
Values values,
PageKey pageKey) |
Document |
GitHistory.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
PageWriter writer,
Values values,
PageKey pageKey) |
Document |
GitCommitDetails.execute(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.api.Git git,
CallSpecification spec,
PageWriter writer,
Values values,
PageKey pageKey) |
Document |
GitConnector.getChildReference(String parentKey,
String childKey) |
Document |
GitConnector.getChildren(PageKey pageKey) |
Document |
GitConnector.getDocumentById(String id) |
Modifier and Type | Method and Description |
---|---|
Document |
JdbcMetadataConnector.getDocumentById(String id) |
protected Document |
TableRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
protected Document |
SchemaRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
protected Document |
ProcedureRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
protected Document |
ForeignKeyRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
protected Document |
DatabaseRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
protected Document |
ColumnRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
protected Document |
CatalogRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
protected abstract Document |
AbstractMetadataRetriever.getDocumentById(String id,
DocumentWriter writer,
Connection connection) |
Modifier and Type | Field and Description |
---|---|
protected static Document |
RepositoryConfiguration.EMPTY |
Modifier and Type | Method and Description |
---|---|
default Document |
Environment.defaultPersistenceConfiguration()
Returns a default persistence configuration document, when nothing is explicitly configured for a repository.
|
Document |
RepositoryConfiguration.getDocument() |
Document |
RepositoryConfiguration.Component.getDocument() |
Document |
RepositoryConfiguration.getPersistenceConfiguration() |
Document |
RepositoryConfiguration.Indexes.getRawIndex(String name)
Get the document representing the single named index definition.
|
Document |
BackupDocumentReader.read()
Read the next document from the files.
|
protected static Document |
RepositoryConfiguration.replaceSystemPropertyVariables(Document doc)
Utility method to replace all system property variables found within the specified document.
|
Modifier and Type | Method and Description |
---|---|
default SchematicDb |
Environment.getDb(Document persistenceConfig)
Returns
SchematicDb instance for the given configuration and optional classpath entries using a
custom loader . |
protected List<RepositoryConfiguration.Component> |
RepositoryConfiguration.readComponents(Document doc,
String fieldName,
String aliasFieldName,
Map<String,String> classnamesByAlias,
Problems problems) |
protected static Document |
RepositoryConfiguration.replaceSystemPropertyVariables(Document doc)
Utility method to replace all system property variables found within the specified document.
|
void |
BackupDocumentWriter.write(Document document)
Append the supplied document to the files.
|
Constructor and Description |
---|
AnonymousSecurity(Document anonymous) |
BinaryStorage(Document binaryStorage) |
Clustering(Document clusteringDoc) |
Component(String name,
String classname,
String classpath,
Document document) |
DocumentOptimization(Document optimization) |
Federation(Document federation) |
GarbageCollection(Document garbageCollection) |
Indexes(Document indexes) |
InitialContent(Document workspaces) |
JaasSecurity(Document jaas) |
Journaling(Document journalingDoc) |
MonitoringSystem(Document monitoring) |
Reindexing(Document reindexing) |
RepositoryConfiguration(Document document,
String documentName) |
RepositoryConfiguration(Document document,
String documentName,
Environment environment) |
Security(Document security) |
Sequencing(Document sequencing) |
TextExtraction(Document textExtracting) |
Modifier and Type | Method and Description |
---|---|
protected Document |
LazyCachedNode.document()
Get the
Document that represents this node. |
Document |
LocalDocumentStore.getChildReference(String parentKey,
String childKey) |
Document |
DocumentStore.getChildReference(String parentKey,
String childKey)
Returns a document representing a single child reference from the supplied parent to the supplied child.
|
Document |
LocalDocumentStore.getChildrenBlock(String key) |
Document |
DocumentStore.getChildrenBlock(String key)
Returns a document representing a block of children, that has the given key.
|
Modifier and Type | Method and Description |
---|---|
int |
DocumentTranslator.countProperties(Document document) |
static ChildReferences |
ImmutableChildReferences.create(DocumentTranslator documentTranslator,
Document document,
String childrenFieldName,
boolean allowsSNS) |
Set<NodeKey> |
DocumentTranslator.getAdditionalParentKeys(Document document) |
ChildReferences |
DocumentTranslator.getChildReferences(WorkspaceCache cache,
Document document) |
protected ChildReferences |
DocumentTranslator.getChildReferencesFromBlock(Document block,
boolean allowsSNS)
Reads the children of the given block and returns a
ChildReferences instance. |
DocumentTranslator.ChildReferencesInfo |
DocumentTranslator.getChildReferencesInfo(Document document) |
String |
DocumentTranslator.getKey(Document document) |
Set<String> |
DocumentTranslator.getMixinTypeNames(Document document) |
Set<Name> |
DocumentTranslator.getMixinTypes(Document document) |
NodeKey |
DocumentTranslator.getParentKey(Document document,
String primaryWorkspaceKey,
String secondaryWorkspaceKey)
Obtain the preferred
key for the parent of this node. |
Name |
DocumentTranslator.getPrimaryType(Document document) |
String |
DocumentTranslator.getPrimaryTypeName(Document document) |
void |
DocumentTranslator.getProperties(Document document,
Map<Name,Property> result) |
Property |
DocumentTranslator.getProperty(Document document,
Name propertyName) |
Property |
DocumentTranslator.getProperty(Document document,
String propertyName) |
Map<NodeKey,Integer> |
DocumentTranslator.getReferrerCounts(Document document,
CachedNode.ReferenceType type) |
Set<NodeKey> |
DocumentTranslator.getReferrers(Document document,
CachedNode.ReferenceType type) |
boolean |
DocumentTranslator.hasProperties(Document document) |
boolean |
DocumentTranslator.hasProperty(Document document,
Name propertyName) |
protected boolean |
DocumentTranslator.isCacheable(Document document) |
protected boolean |
DocumentTranslator.isFederatedDocument(Document document) |
protected boolean |
DocumentTranslator.isQueryable(Document document) |
void |
LocalDocumentStore.put(Document entryDocument)
Store the supplied document in the local db
|
void |
LocalDocumentStore.put(String key,
Document document)
Store the supplied document and metadata at the given key.
|
SchematicEntry |
LocalDocumentStore.storeIfAbsent(String key,
Document document) |
SchematicEntry |
DocumentStore.storeIfAbsent(String key,
Document document)
Store the supplied document at the given key.
|
void |
LocalDocumentStore.updateDocument(String key,
Document document,
SessionNode sessionNode) |
void |
DocumentStore.updateDocument(String key,
Document document,
SessionNode sessionNode)
Updates the content of the document at the given key with the given document.
|
Constructor and Description |
---|
LazyCachedNode(NodeKey key,
Document document) |
Medium(DocumentTranslator documentTranslator,
Document document,
String childrenFieldName,
boolean allowsSNS) |
Modifier and Type | Method and Description |
---|---|
Document |
FederatedDocumentReader.document() |
Document |
FederatedDocumentStore.getChildReference(String parentKey,
String childKey) |
Document |
FederatedDocumentStore.getChildrenBlock(String key) |
Document |
FederatedDocumentChanges.getDocument() |
Modifier and Type | Method and Description |
---|---|
List<Document> |
FederatedDocumentReader.getChildren() |
Modifier and Type | Method and Description |
---|---|
SchematicEntry |
FederatedDocumentStore.storeIfAbsent(String key,
Document document) |
void |
FederatedDocumentStore.updateDocument(String key,
Document document,
SessionNode sessionNode) |
Modifier and Type | Method and Description |
---|---|
DocumentWriter |
FederatedDocumentWriter.setChildren(List<? extends Document> children) |
Constructor and Description |
---|
FederatedDocumentChanges(String documentId,
Document document) |
FederatedDocumentReader(DocumentTranslator translator,
Document federatedDocument) |
FederatedDocumentWriter(DocumentTranslator translator,
Document document) |
Constructor and Description |
---|
EsRequest(Document origin)
Creates new document with initial content.
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentReader.document()
Returns the underlying document instance.
|
Document |
Connector.getChildReference(String parentKey,
String childKey)
Returns a document representing a single child reference from the supplied parent to the supplied child.
|
Document |
Pageable.getChildren(PageKey pageKey)
Returns a document which represents the document of a parent node to which an optional page of children has been added.
|
Document |
DocumentChanges.getDocument()
Returns the document which contains all the changes.
|
abstract Document |
Connector.getDocumentById(String id)
Returns a
Document instance representing the document with a given id. |
protected Document |
Connector.newChildReference(String childId,
String childName)
Obtain a new child reference document that is useful in the
Connector.getChildReference(String, String) method. |
Modifier and Type | Method and Description |
---|---|
List<? extends Document> |
DocumentReader.getChildren()
Returns the list of children the underlying document has.
|
Modifier and Type | Method and Description |
---|---|
protected DocumentReader |
Connector.readDocument(Document document)
Obtain a new
DocumentReader that can be used to read an existing document, typically used within the
Connector.storeDocument(Document) and Connector.updateDocument(DocumentChanges) methods. |
void |
ReadOnlyConnector.storeDocument(Document document) |
abstract void |
Connector.storeDocument(Document document)
Stores the given document.
|
protected DocumentWriter |
Connector.writeDocument(Document document)
Obtain a new
DocumentWriter that can be used to update a document. |
Modifier and Type | Method and Description |
---|---|
PageWriter |
PageWriter.setChildren(List<? extends Document> children)
Set the list of children for the underlying document.
|
DocumentWriter |
DocumentWriter.setChildren(List<? extends Document> children) |
Modifier and Type | Method and Description |
---|---|
Document |
FileDb.get(String key) |
Modifier and Type | Method and Description |
---|---|
protected org.h2.mvstore.db.TransactionStore.TransactionMap<String,Document> |
FileDb.transactionalContent(boolean failIfMissing) |
Modifier and Type | Method and Description |
---|---|
FileDb |
FileDbProvider.getDB(String type,
Document configuration) |
SchematicEntry |
FileDb.putIfAbsent(String key,
Document content) |
Modifier and Type | Field and Description |
---|---|
protected static Document |
TransactionalCaches.REMOVED |
Modifier and Type | Method and Description |
---|---|
Document |
RelationalDb.get(String key) |
Document |
Statements.getById(Connection connection,
String id)
Searches for a document with a certain id.
|
Document |
DefaultStatements.getById(Connection connection,
String id) |
protected Document |
TransactionalCaches.getForWriting(String key) |
protected Document |
TransactionalCaches.putForWriting(String key,
Document doc) |
protected Document |
DefaultStatements.readDocument(InputStream is) |
protected Document |
TransactionalCaches.search(String key) |
Modifier and Type | Method and Description |
---|---|
protected ConcurrentMap<String,Document> |
TransactionalCaches.writeCache() |
Modifier and Type | Method and Description |
---|---|
RelationalDb |
RelationalProvider.getDB(String type,
Document configuration) |
protected void |
DefaultStatements.DefaultBatchUpdate.insertDocument(PreparedStatement statement,
String id,
Document document) |
protected void |
TransactionalCaches.putForReading(String key,
Document doc) |
protected Document |
TransactionalCaches.putForWriting(String key,
Document doc) |
SchematicEntry |
RelationalDb.putIfAbsent(String key,
Document content) |
protected void |
DefaultStatements.DefaultBatchUpdate.updateDocument(PreparedStatement statement,
String id,
Document document) |
protected byte[] |
DefaultStatements.writeDocument(Document content) |
Modifier and Type | Method and Description |
---|---|
void |
Statements.BatchUpdate.insert(Map<String,Document> documentsById)
Inserts a bunch of documents into a table.
|
void |
DefaultStatements.DefaultBatchUpdate.insert(Map<String,Document> documentsById) |
<R> List<R> |
Statements.load(Connection connection,
List<String> ids,
Function<Document,R> parser)
Loads multiple documents based on a set of ids.
|
<R> List<R> |
DefaultStatements.load(Connection connection,
List<String> ids,
Function<Document,R> parser) |
void |
Statements.BatchUpdate.update(Map<String,Document> documentsById)
Updates a bunch of documents from a table.
|
void |
DefaultStatements.DefaultBatchUpdate.update(Map<String,Document> documentsById) |
Constructor and Description |
---|
RelationalDb(Document configDoc) |
RelationalDbConfig(Document document) |
Modifier and Type | Method and Description |
---|---|
default Document |
SchematicEntry.content()
Return this document's content.
|
static Document |
SchematicEntry.content(Document entryDocument)
Returns the value of the CONTENT document from a given entry document.
|
Document |
SchemaLibrary.convertValues(Document document,
SchemaLibrary.Results results)
Look for fields within the document (including nested documents) whose values are not of the expected type for the given
schema, but whose values can be converted into the expected type.
|
Document |
SchemaLibrary.convertValues(Document document,
String schemaUri)
Look for fields within the document (including nested documents) whose values are not of the expected type for the given
schema, but whose values can be converted into the expected type.
|
Document |
SchematicDb.get(String key)
Get the document with the supplied key.
|
Document |
DocumentLibrary.get(String key)
Get the document with the supplied key.
|
default Document |
SchematicEntry.getMetadata()
Get the metadata associated with this document.
|
Document |
DocumentLibrary.put(String key,
Document document)
Store the supplied document at the given key.
|
Document |
DocumentLibrary.putIfAbsent(String key,
Document document)
Store the supplied document at the given key.
|
Document |
DocumentLibrary.remove(String key)
Remove the existing document at the given key.
|
Document |
DocumentLibrary.replace(String key,
Document document)
Replace the existing document at the given key with the document that is supplied.
|
Document |
SchematicEntry.source()
Returns the original document which is wrapped by this entry.
|
Modifier and Type | Method and Description |
---|---|
static Document |
SchematicEntry.content(Document entryDocument)
Returns the value of the CONTENT document from a given entry document.
|
Document |
SchemaLibrary.convertValues(Document document,
SchemaLibrary.Results results)
Look for fields within the document (including nested documents) whose values are not of the expected type for the given
schema, but whose values can be converted into the expected type.
|
Document |
SchemaLibrary.convertValues(Document document,
String schemaUri)
Look for fields within the document (including nested documents) whose values are not of the expected type for the given
schema, but whose values can be converted into the expected type.
|
static SchematicEntry |
SchematicEntry.create(String id,
Document content)
Creates a new entry with the given content.
|
static <T extends SchematicDb> |
Schematic.getDb(Document document)
Returns a DB with the given configuration document
Document . |
static <T extends SchematicDb> |
Schematic.getDb(Document document,
ClassLoader cl)
Returns a DB with the given type and configuration document, by delegating to all the available
SchematicDbProvider
services. |
T |
SchematicDbProvider.getDB(String type,
Document configuration)
Returns a schematic DB instance for a given db type and configuration document
|
static String |
SchematicEntry.id(Document entryDocument)
Returns the value of the ID from a given entry document.
|
static EditableDocument |
DocumentFactory.newDocument(Document original)
Create a new editable document that is a copy of the supplied document.
|
default void |
SchematicDb.put(String key,
Document content)
Store the supplied content document at the given key.
|
Document |
DocumentLibrary.put(String key,
Document document)
Store the supplied document at the given key.
|
default void |
SchematicDb.putEntry(Document entryDocument)
Store the supplied document.
|
SchematicEntry |
SchematicDb.putIfAbsent(String key,
Document content)
Store the supplied content at the given key.
|
Document |
DocumentLibrary.putIfAbsent(String key,
Document document)
Store the supplied document at the given key.
|
Document |
DocumentLibrary.replace(String key,
Document document)
Replace the existing document at the given key with the document that is supplied.
|
SchemaLibrary.Results |
SchemaLibrary.validate(Document document,
String schemaUri)
Validate the supplied document against the JSON Schema with the supplied URI.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Array
Primary read-only interface for an in-memory representation of JSON/BSON arrays.
|
interface |
EditableArray |
interface |
EditableDocument |
interface |
Editor |
Modifier and Type | Method and Description |
---|---|
Document |
Document.clone()
Obtain a clone of this document.
|
Document |
Document.getDocument(String name)
Get the document value in this document for the given field name.
|
Document |
CodeWithScope.getScope() |
Document |
Document.Field.getValueAsDocument() |
Document |
DocumentSequence.nextDocument()
Get the next document.
|
static Document |
Bson.read(DataInput input)
Read the binary BSON representation from supplied data input and construct the
Document representation. |
static Document |
Json.read(InputStream stream)
Read the JSON representation from supplied input stream and construct the
Document representation, using the
default character set . |
static Document |
Bson.read(InputStream stream)
Read the binary BSON representation from supplied input stream and construct the
Document representation. |
static Document |
Json.read(InputStream stream,
boolean introspectStringValues)
Read the JSON representation from supplied input stream and construct the
Document representation, using the
default character set . |
static Document |
Json.read(InputStream stream,
Charset charset)
Read the JSON representation from supplied input stream and construct the
Document representation, using the
supplied character set . |
static Document |
Json.read(Reader reader)
Read the JSON representation from supplied input stream and construct the
Document representation. |
static Document |
Json.read(String json)
Read the supplied JSON representation and construct the
Document representation. |
static Document |
Json.read(URL url)
Read the JSON representation from supplied URL and construct the
Document representation, using the
default character set . |
Document |
EditableDocument.unwrap()
Unwrap this editor to obtain the potentially wrapped document.
|
Document |
Document.with(Document.ValueTransformer transformer)
Obtain a clone of this document, but with the field values transformed using the supplied
Document.ValueTransformer . |
Document |
Document.with(Map<String,Object> changedFields)
Obtain a clone of this document, but with the supplied fields replaced.
|
Document |
Document.with(String fieldName,
Object value)
Obtain a clone of this document, but with the supplied fields replaced.
|
Document |
Document.withVariablesReplaced(Properties properties)
Obtain a clone of this document, but with all variables in string field values replaced with the referenced values from the
supplied properties.
|
Document |
Document.withVariablesReplacedWithSystemProperties()
Obtain a clone of this document, but with all variables in string field values replaced with the referenced values from the
System properties.
|
Modifier and Type | Method and Description |
---|---|
EditableDocument |
EditableArray.addCode(int index,
String code,
Document scope)
Insert the value for the field at the given index to be a
Code or CodeWithScope . |
EditableDocument |
EditableArray.addCode(String code,
Document scope)
Adds to this array a
CodeWithScope with the supplied JavaScript code and scope. |
EditableDocument |
EditableArray.addCodeIfAbsent(String code,
Document scope)
Adds to this array a
CodeWithScope with the supplied JavaScript code and scope, if and only if an equivalent value
doesn't already exist in the array. |
EditableDocument |
EditableArray.addDocument(Document document)
Adds to this array the supplied document.
|
EditableDocument |
EditableArray.addDocument(int index,
Document document)
Insert the value for the field at the given index to be the supplied Document.
|
EditableDocument |
EditableArray.addDocumentIfAbsent(Document document)
Adds to this array the supplied document, if and only if an equivalent value doesn't already exist in the array.
|
boolean |
Document.containsAll(Document document)
Checks if this object contains all of the fields in the supplied document.
|
void |
EditableDocument.merge(Document other)
Merges the supplied document onto this document.
|
void |
EditableDocument.putAll(Document object)
Sets on this object all name/value pairs from the supplied object.
|
EditableDocument |
EditableArray.setCode(int index,
String code,
Document scope)
Set the value for the field at the given index to be a
Code or CodeWithScope . |
EditableDocument |
EditableDocument.setCode(String name,
String code,
Document scope)
Set the value for the field with the given name to be a
Code or CodeWithScope . |
EditableDocument |
EditableArray.setCode(String name,
String code,
Document scope)
Set the value for the field at the given index to be a
Code or CodeWithScope . |
EditableDocument |
EditableArray.setDocument(int index,
Document document)
Set the value for the field at the given index to be the supplied Document.
|
EditableDocument |
EditableDocument.setDocument(String name,
Document document)
Set the value for the field with the given name to be the supplied Document.
|
EditableDocument |
EditableArray.setDocument(String name,
Document document)
Set the value for the field at the given index to be the supplied Document.
|
static String |
Json.write(Document bson)
Return the modified JSON representation for the supplied in-memory
Document . |
static void |
Bson.write(Document bson,
ObjectOutput output)
Write to the supplied output the binary BSON representation of the supplied in-memory
Document . |
static void |
Json.write(Document bson,
OutputStream stream)
Write to the supplied writer the modified JSON representation of the supplied in-memory
Document . |
static void |
Bson.write(Document bson,
OutputStream stream)
Write to the supplied stream the binary BSON representation of the supplied in-memory
Document . |
static void |
Json.write(Document bson,
Writer writer)
Write to the supplied writer the modified JSON representation of the supplied in-memory
Document . |
static String |
Json.writePretty(Document bson)
Return the modified JSON representation for the supplied in-memory
Document . |
static void |
Json.writePretty(Document bson,
OutputStream stream)
Write to the supplied writer the modified JSON representation of the supplied in-memory
Document . |
static void |
Json.writePretty(Document bson,
Writer writer)
Write to the supplied writer the modified JSON representation of the supplied in-memory
Document . |
Constructor and Description |
---|
CodeWithScope(String code,
Document scope) |
Modifier and Type | Method and Description |
---|---|
Document |
InMemorySchemaLibrary.convertValues(Document document,
SchemaLibrary.Results results) |
Document |
InMemorySchemaLibrary.convertValues(Document document,
String schemaUri) |
Document |
InMemorySchemaLibrary.get(String key) |
Document |
InMemoryDocumentLibrary.get(String key) |
Document |
InMemorySchemaLibrary.put(String key,
Document document) |
Document |
InMemoryDocumentLibrary.put(String key,
Document document) |
Document |
InMemorySchemaLibrary.putIfAbsent(String key,
Document document) |
Document |
InMemoryDocumentLibrary.putIfAbsent(String key,
Document document) |
Document |
InMemorySchemaLibrary.remove(String key) |
Document |
InMemoryDocumentLibrary.remove(String key) |
Document |
InMemorySchemaLibrary.replace(String key,
Document document) |
Document |
InMemoryDocumentLibrary.replace(String key,
Document document) |
Modifier and Type | Method and Description |
---|---|
Document |
InMemorySchemaLibrary.convertValues(Document document,
SchemaLibrary.Results results) |
Document |
InMemorySchemaLibrary.convertValues(Document document,
String schemaUri) |
Document |
InMemorySchemaLibrary.put(String key,
Document document) |
Document |
InMemoryDocumentLibrary.put(String key,
Document document) |
Document |
InMemorySchemaLibrary.putIfAbsent(String key,
Document document) |
Document |
InMemoryDocumentLibrary.putIfAbsent(String key,
Document document) |
Document |
InMemorySchemaLibrary.replace(String key,
Document document) |
Document |
InMemoryDocumentLibrary.replace(String key,
Document document) |
SchemaLibrary.Results |
InMemorySchemaLibrary.validate(Document document,
String schemaUri) |
Modifier and Type | Interface and Description |
---|---|
interface |
MutableArray |
interface |
MutableDocument
A mutable
Document used when building a MutableBsonObject. |
Modifier and Type | Class and Description |
---|---|
class |
ArrayEditor |
class |
BasicArray
A
ordered array of values for use as a value within a
BSON Object . |
class |
BasicDocument |
class |
DocumentEditor |
class |
IncrementalDocumentEditor
Document editor implementation which allows the editing of a document via a list of incremental changes.
|
class |
ObservableArrayEditor |
class |
ObservableDocumentEditor |
Modifier and Type | Method and Description |
---|---|
protected Document |
BsonReader.Reader.endDocument() |
Document |
BasicDocument.getDocument(String name) |
Document |
BasicArray.getDocument(String name) |
Document |
ImmutableField.getValueAsDocument() |
Document |
JsonReader.Parser.parseDocument()
Parse the stream for the next JSON document.
|
protected Document |
JsonReader.Parser.parseDocument(AtomicBoolean hasReservedFieldNames,
boolean failIfNotValidDocument)
Parse the stream for the next JSON document.
|
Document |
JsonReader.Parser.parseDocument(boolean failIfNotValidDocument)
Parse the stream for the next JSON document.
|
Document |
BsonReader.read(DataInput input)
Read the binary BSON representation from supplied input stream and construct the
Document representation. |
Document |
JsonReader.read(InputStream stream)
Read the JSON representation from supplied input stream and construct the
Document representation, using the
default character set . |
Document |
BsonReader.read(InputStream stream)
Read the binary BSON representation from supplied input stream and construct the
Document representation. |
Document |
JsonReader.read(InputStream stream,
boolean introspectStringValues)
Read the JSON representation from supplied input stream and construct the
Document representation, using the
default character set . |
Document |
JsonReader.read(InputStream stream,
Charset charset)
Read the JSON representation from supplied input stream and construct the
Document representation, using the
supplied character set . |
Document |
JsonReader.read(InputStream stream,
Charset charset,
boolean introspectStringValues)
Read the JSON representation from supplied input stream and construct the
Document representation, using the
supplied character set . |
Document |
JsonReader.read(Reader reader)
Read the JSON representation from supplied input stream and construct the
Document representation. |
Document |
JsonReader.read(Reader reader,
boolean introspectStringValues)
Read the JSON representation from supplied input stream and construct the
Document representation. |
Document |
JsonReader.read(String json)
Read the JSON representation from supplied string and construct the
Document representation. |
Document |
JsonReader.read(String json,
boolean introspectStringValues)
Read the JSON representation from supplied string and construct the
Document representation. |
Document |
JsonReader.read(URL url)
Read the JSON representation from supplied URL and construct the
Document representation, using the
default character set . |
Document |
DocumentEditor.unwrap() |
Document |
BasicDocument.with(Document.ValueTransformer transformer) |
Document |
BasicDocument.with(Map<String,Object> changedFields) |
Document |
DocumentEditor.with(String fieldName,
Object value) |
Document |
BasicDocument.with(String fieldName,
Object newValue) |
Document |
BasicArray.with(String fieldName,
Object newValue) |
Document |
ArrayEditor.with(String fieldName,
Object value) |
Document |
DocumentEditor.withVariablesReplaced(Properties properties) |
Document |
BasicDocument.withVariablesReplaced(Properties properties) |
Document |
ArrayEditor.withVariablesReplaced(Properties properties) |
Document |
DocumentEditor.withVariablesReplacedWithSystemProperties() |
Document |
BasicDocument.withVariablesReplacedWithSystemProperties() |
Document |
ArrayEditor.withVariablesReplacedWithSystemProperties() |
Modifier and Type | Method and Description |
---|---|
EditableDocument |
ArrayEditor.addCode(int index,
String code,
Document scope) |
EditableDocument |
ArrayEditor.addCode(String code,
Document scope) |
EditableDocument |
ArrayEditor.addCodeIfAbsent(String code,
Document scope) |
EditableDocument |
ArrayEditor.addDocument(Document document) |
EditableDocument |
ArrayEditor.addDocument(int index,
Document document) |
EditableDocument |
ArrayEditor.addDocumentIfAbsent(Document document) |
boolean |
DocumentEditor.containsAll(Document document) |
boolean |
BasicDocument.containsAll(Document document) |
boolean |
BasicArray.containsAll(Document document) |
boolean |
ArrayEditor.containsAll(Document document) |
CodeWithScope |
DocumentValueFactory.createCode(String code,
Document scope) |
CodeWithScope |
DefaultDocumentValueFactory.createCode(String code,
Document scope) |
protected void |
ObservableDocumentEditor.doSetAllValues(Document values) |
protected void |
DocumentEditor.doSetAllValues(Document values)
The method that does the actual setting for all of the
DocumentEditor.putAll(Document) method. |
protected EditableDocument |
ArrayEditor.editable(Document doc,
int index) |
protected EditableDocument |
DocumentEditor.editable(Document doc,
String fieldName) |
void |
DocumentEditor.merge(Document other) |
void |
ArrayEditor.merge(Document other) |
protected Object |
JsonReader.Parser.processDocumentWithReservedFieldNames(Document doc) |
void |
MutableDocument.putAll(Document object)
Sets on this object all name/value pairs from the supplied object.
|
void |
DocumentEditor.putAll(Document object) |
void |
BasicDocument.putAll(Document object) |
void |
BasicArray.putAll(Document object) |
void |
ArrayEditor.putAll(Document object) |
EditableDocument |
ArrayEditor.setCode(int index,
String code,
Document scope) |
EditableDocument |
DocumentEditor.setCode(String name,
String code,
Document scope) |
EditableDocument |
ArrayEditor.setCode(String name,
String code,
Document scope) |
EditableDocument |
ArrayEditor.setDocument(int index,
Document document) |
EditableDocument |
DocumentEditor.setDocument(String name,
Document document) |
EditableDocument |
ArrayEditor.setDocument(String name,
Document document) |
protected void |
PrettyJsonWriter.write(Document bson,
Writer writer) |
protected void |
CompactJsonWriter.write(Document bson,
Writer writer) |
protected void |
BsonWriter.write(String name,
Document document,
BsonDataOutput output) |
Constructor and Description |
---|
BasicDocument(Document document) |
Modifier and Type | Method and Description |
---|---|
protected static Document |
DocumentTransformer.convertValuesWithMismatchedTypes(Document original,
int level,
LinkedList<DocumentTransformer.Conversion> conversions) |
static Document |
DocumentTransformer.convertValuesWithMismatchedTypes(Document original,
SchemaLibrary.Results results)
Return a copy of the supplied document that contains converted values for all of the fields (including in the nested
documents and arrays) that have values that are of the wrong type but can be converted to be of the correct type.
|
Document |
SchemaDocument.getDocument() |
Modifier and Type | Method and Description |
---|---|
protected void |
JsonSchemaValidatorFactory.addValidatorsForDisallowedTypes(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForDivisibleBy(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForEnum(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForItems(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForMaximum(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForMaximumItems(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForMaximumLength(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForMinimum(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForMinimumItems(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForMinimumLength(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForPattern(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForPatternProperties(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForProperties(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForRequired(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForTypes(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected void |
JsonSchemaValidatorFactory.addValidatorsForUniqueItems(Document parent,
Path parentPath,
Problems problems,
JsonSchemaValidatorFactory.CompositeValidator validators) |
protected static Document |
DocumentTransformer.convertValuesWithMismatchedTypes(Document original,
int level,
LinkedList<DocumentTransformer.Conversion> conversions) |
static Document |
DocumentTransformer.convertValuesWithMismatchedTypes(Document original,
SchemaLibrary.Results results)
Return a copy of the supplied document that contains converted values for all of the fields (including in the nested
documents and arrays) that have values that are of the wrong type but can be converted to be of the correct type.
|
Validator |
Validator.Factory.create(Document schemaDocument,
Path pathToDoc) |
Validator |
JsonSchemaValidatorFactory.create(Document schemaDocument,
Path pathToDoc) |
protected Validator |
JsonSchemaValidatorFactory.dereference(Document schemaDocument,
Path pathToDoc,
Problems problems) |
void |
Validator.validate(Object fieldValue,
String fieldName,
Document document,
Path pathToDocument,
Problems problems,
Validator.SchemaDocumentResolver resolver)
Validate a portion of the supplied document.
|
void |
JsonSchemaValidatorFactory.TypeValidator.validate(Object fieldValue,
String fieldName,
Document document,
Path pathToDocument,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.UnionValidator.validate(Object fieldValue,
String fieldName,
Document document,
Path pathToDocument,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.ResolvingValidator.validate(Object fieldValue,
String fieldName,
Document document,
Path pathToDocument,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.RequiredValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.NumericValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.MinimumLengthValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.MaximumLengthValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.DivisibleByValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.ItemCountValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.UniqueItemsValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.PatternValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.EnumValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.DisallowedTypesValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.AllItemsMatchValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.EachItemMatchesValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.NotValidValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.PropertyValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.PatternPropertyValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.AllowedPropertiesValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.NoOtherAllowedPropertiesValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
void |
JsonSchemaValidatorFactory.CompositeValidator.validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver) |
Constructor and Description |
---|
SchemaDocument(String uri,
Document document,
Validator validator) |
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.