404142434445464748
* * @param original the original document * @return the editable document; never null */ public static EditableDocument newDocument( Document original ) { BasicDocument newDoc = new BasicDocument(); newDoc.putAll(original); return new DocumentEditor(newDoc, DEFAULT_FACTORY); }
52535455565758
* documents. * * @return the editable document; never null */ public static EditableDocument newDocument() { return new DocumentEditor(new BasicDocument(), DEFAULT_FACTORY); }
66676869707172
* @param value the value of the initial field in the resulting document * @return the editable document; never null */ public static EditableDocument newDocument( String name, Object value ) { return new DocumentEditor(new BasicDocument(name, value), DEFAULT_FACTORY); }
85868788899091
*/ public static EditableDocument newDocument( String name1, Object value1, String name2, Object value2 ) { return new DocumentEditor(new BasicDocument(name1, value1, name2, value2), DEFAULT_FACTORY); }
109110111112113114115
Object value1, String name2, Object value2, String name3, Object value3 ) { return new DocumentEditor(new BasicDocument(name1, value1, name2, value2, name3, value3), DEFAULT_FACTORY); }
138139140141142143144
Object value2, String name3, Object value3, String name4, Object value4 ) { return new DocumentEditor(new BasicDocument(name1, value1, name2, value2, name3, value3, name4, value4), DEFAULT_FACTORY); }
72737475767778
private volatile MutableDocument value; volatile boolean copied = false; volatile boolean removed = false; public SchematicEntryLiteral() { value = new BasicDocument(FieldName.METADATA, new BasicDocument(), FieldName.CONTENT, new BasicDocument()); }
76777879808182
public SchematicEntryLiteral() { value = new BasicDocument(FieldName.METADATA, new BasicDocument(), FieldName.CONTENT, new BasicDocument()); } public SchematicEntryLiteral( String key ) { this(key, new BasicDocument()); }
8687888990919293
assert this.value != null; } public SchematicEntryLiteral( String key, Document content ) { Document metadata = new BasicDocument(FieldName.ID, key); value = new BasicDocument(FieldName.METADATA, metadata, FieldName.CONTENT, unwrap(content)); }
92939495969798
value = new BasicDocument(FieldName.METADATA, metadata, FieldName.CONTENT, unwrap(content)); } protected SchematicEntryLiteral( Document metadata, Document content ) { value = new BasicDocument(FieldName.METADATA, unwrap(metadata), FieldName.CONTENT, unwrap(content)); }