@Setup(mode=SINGLETON, priority=2000) public class ConstraintJsonWriter extends ExtensibleEntityJsonWriter<Constraint>
Constraint to Json.
This marshaller is enrichable: register class implementing AbstractJsonEnricher and managing
Constraint.
This marshaller is also extensible: extend it and simply override
ExtensibleEntityJsonWriter#extend(Constraint, JsonWriter).
Format is:
{
"entity-type":"validation_constraint",
"name": "CONSTRAINT_NAME",
"parameters": {
"PARAMETER1_NAME": "PARAMETER1_VALUE",
"PARAMETER2_NAME": "PARAMETER2_VALUE",
...
}
<-- 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 |
|---|
ConstraintJsonWriter() |
writeaccept, writepublic static final String ENTITY_TYPE
Copyright © 2015 Nuxeo SA. All rights reserved.