@Setup(mode=SINGLETON, priority=2001) public class DocumentTypeJsonWriter extends ExtensibleEntityJsonWriter<DocumentType>
DocumentType
to Json.
This marshaller is enrichable: register class implementing AbstractJsonEnricher
and managing
DocumentType
.
This marshaller is also extensible: extend it and simply override
ExtensibleEntityJsonWriter#extend(DocumentType, JsonWriter)
.
Format is:
{ "entity-type":"docType", "name": "DOC_TYPE_NAME", "parent": null|"DOC_TYPE_PARENT" "facets": [ "FACET1", "FACET2", ... ], "schemas": [ { see {@link SchemaJsonWriter} for format }, { ... }, ... ], <-- contextParameters if there are enrichers activated <-- additional property provided by extend() method }
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_TYPE |
Constructor and Description |
---|
DocumentTypeJsonWriter() |
write
accept, write
public static final String ENTITY_TYPE
Copyright © 2015 Nuxeo SA. All rights reserved.