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()
SchematicEntry
getMetadata
in interface SchematicEntry
public Document getContent()
SchematicEntry
Document
.getContent
in interface SchematicEntry
public void setContent(Document content)
SchematicEntry
application/json
".setContent
in interface SchematicEntry
content
- the Document representing the JSON content; may not be nullpublic EditableDocument edit()
public Document asDocument()
SchematicEntry
metadata
and
content
as nested documents.asDocument
in interface SchematicEntry
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.