| Package | Description |
|---|---|
| org.modeshape.schematic | |
| org.modeshape.schematic.document | |
| org.modeshape.schematic.internal.document |
| Modifier and Type | Method and Description |
|---|---|
EditableDocument |
SchematicDb.editContent(String key,
boolean createIfMissing)
Get an editor for the content of the given entry with the supplied key.
|
static EditableDocument |
DocumentFactory.newDocument()
Create a new editable document that can be used as a new document entry in a SchematicDb or as nested documents for other
documents.
|
static EditableDocument |
DocumentFactory.newDocument(Document original)
Create a new editable document that is a copy of the supplied document.
|
static EditableDocument |
DocumentFactory.newDocument(String name,
Object value)
Create a new editable document, initialized with a single field, that can be used as a new document entry in a SchematicDb
or as nested documents for other documents.
|
static EditableDocument |
DocumentFactory.newDocument(String name1,
Object value1,
String name2,
Object value2)
Create a new editable document, initialized with two fields, that can be used as a new document entry in a SchematicDb or
as nested documents for other documents.
|
static EditableDocument |
DocumentFactory.newDocument(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3)
Create a new editable document, initialized with three fields, that can be used as a new document entry in a SchematicDb or
as nested documents for other documents.
|
static EditableDocument |
DocumentFactory.newDocument(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4)
Create a new editable document, initialized with four fields, that can be used as a new document entry in a SchematicDb or
as nested documents for other documents.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
EditableArray |
interface |
Editor |
| Modifier and Type | Method and Description |
|---|---|
EditableDocument |
EditableArray.addCode(int index,
String code,
boolean includeScope)
Insert the value for the field at the given index to be a
Code or CodeWithScope. |
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,
boolean includeScope)
Adds to this array a
Code with the supplied JavaScript code. |
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()
Adds to this array a new empty document.
|
EditableDocument |
EditableArray.addDocument(Document document)
Adds to this array the supplied document.
|
EditableDocument |
EditableArray.addDocument(int index)
Insert the value for the field at the given index to be a new, empty 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.
|
EditableDocument |
EditableArray.addValueIfAbsent(Object value)
Add the supplied value to this array if and only if there is not already an equivalent value in the array.
|
EditableDocument |
EditableDocument.clone() |
default EditableDocument |
EditableDocument.editable() |
EditableDocument |
Document.editable()
Returns an editable view of the given document.
|
EditableDocument |
EditableDocument.getDocument(String name)
Get the existing document value in this document for the given field name.
|
EditableDocument |
EditableArray.getDocument(String name)
Get the existing document value in this array for the given index.
|
EditableDocument |
EditableDocument.getOrCreateDocument(String name)
Get the existing document value in this document for the given field name, or create a new document if there is no existing
document at this field.
|
EditableDocument |
EditableDocument.set(String name,
Object value)
Set the value for the field with the given name to the supplied value.
|
EditableDocument |
EditableDocument.setBinary(String name,
byte type,
byte[] data)
Set the value for the field with the given name to be a binary value.
|
EditableDocument |
EditableDocument.setBoolean(String name,
boolean value)
Set the value for the field with the given name to the supplied boolean value.
|
EditableDocument |
EditableArray.setCode(int index,
String code,
boolean includeScope)
Set the value for the field at the given index to be a
Code or CodeWithScope. |
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,
boolean includeScope)
Set the value for the field with the given name to be a
Code or CodeWithScope. |
EditableDocument |
EditableArray.setCode(String name,
String code,
boolean includeScope)
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 |
EditableDocument.setDate(String name,
Date value)
Set the value for the field with the given name to the supplied date value.
|
EditableDocument |
EditableDocument.setDate(String name,
String isoDate)
Set the value for the field with the given name to the date value parsed from the ISO-8601 date representation.
|
EditableDocument |
EditableArray.setDocument(int index)
Set the value for the field at the given index to be a new, empty Document.
|
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)
Set the value for the field with the given name to be a new, empty Document.
|
EditableDocument |
EditableArray.setDocument(String name)
Set the value for the field at the given index to be a new, empty 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.
|
EditableDocument |
EditableDocument.setNull(String name)
Set the value for the field with the given name to be a null value.
|
EditableDocument |
EditableDocument.setNumber(String name,
double value)
Set the value for the field with the given name to the supplied double value.
|
EditableDocument |
EditableDocument.setNumber(String name,
float value)
Set the value for the field with the given name to the supplied float value.
|
EditableDocument |
EditableDocument.setNumber(String name,
int value)
Set the value for the field with the given name to the supplied integer value.
|
EditableDocument |
EditableDocument.setNumber(String name,
long value)
Set the value for the field with the given name to the supplied long value.
|
EditableDocument |
EditableDocument.setObjectId(String name,
byte[] bytes)
Set the value for the field with the given name to an
ObjectId created from the supplied 12-byte binary value. |
EditableDocument |
EditableDocument.setObjectId(String name,
int time,
int machine,
int process,
int inc)
Set the value for the field with the given name to an
ObjectId created from the supplied hexadecimal binary value. |
EditableDocument |
EditableDocument.setObjectId(String name,
String hex)
Set the value for the field with the given name to an
ObjectId created from the supplied hexadecimal binary value. |
EditableDocument |
EditableDocument.setRegularExpression(String name,
String pattern)
Set the value for the field with the given name to the supplied regular expression.
|
EditableDocument |
EditableDocument.setRegularExpression(String name,
String pattern,
int flags)
Set the value for the field with the given name to the supplied regular expression.
|
EditableDocument |
EditableDocument.setString(String name,
String value)
Set the value for the field with the given name to the supplied string value.
|
EditableDocument |
EditableDocument.setSymbol(String name,
String value)
Set the value for the field with the given name to a
Symbol created from the supplied string value. |
EditableDocument |
EditableDocument.setTimestamp(String name,
int timeInSeconds,
int increment)
Set the value for the field with the given name to a
Timestamp with the supplied time in seconds and increment. |
EditableDocument |
EditableDocument.setUuid(String name,
UUID uuid)
Set the value for the field with the given name to be a
UUID. |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayEditor |
class |
DocumentEditor |
class |
IncrementalDocumentEditor
Document editor implementation which allows the editing of a document via a list of incremental changes.
|
class |
ObservableArrayEditor |
class |
ObservableDocumentEditor |
Copyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.