public class FederatedSchematicEntry extends Object implements SchematicEntry
SchematicEntry implementation which is used by the FederatedDocumentStore to wrap editable documents.SchematicEntry.FieldName| Constructor and Description |
|---|
FederatedSchematicEntry(EditableDocument document) |
| Modifier and Type | Method and Description |
|---|---|
Document |
asDocument()
|
EditableDocument |
edit() |
Document |
getContent()
Return this value's content.
|
Document |
getMetadata()
Get the metadata associated with this value.
|
void |
setContent(Document content)
Set the content for this value to be the supplied Document and set the content type to be "
application/json". |
public FederatedSchematicEntry(EditableDocument document)
public Document getMetadata()
SchematicEntrygetMetadata in interface SchematicEntrypublic Document getContent()
SchematicEntryDocument.getContent in interface SchematicEntrypublic void setContent(Document content)
SchematicEntryapplication/json".setContent in interface SchematicEntrycontent - the Document representing the JSON content; may not be nullpublic EditableDocument edit()
public Document asDocument()
SchematicEntrymetadata and
content as nested documents.asDocument in interface SchematicEntryCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.