public abstract class EntityBuilder extends Object implements org.symphonyoss.s2.common.dom.json.IJsonDomNodeProvider, IBaseEntity
| Modifier and Type | Field and Description |
|---|---|
protected static org.symphonyoss.s2.common.dom.DomSerializer |
SERIALIZER |
| Constructor and Description |
|---|
EntityBuilder(EntityFactory<?,?,?> factory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.symphonyoss.s2.common.dom.json.IImmutableJsonDomNode |
getJsonDomNode() |
abstract org.symphonyoss.s2.common.dom.json.ImmutableJsonObject |
getJsonObject()
Return the JSON representation of the current state of this builder.
|
void |
getJsonObject(org.symphonyoss.s2.common.dom.json.MutableJsonObject jsonObject)
Fill in the JSON representation of the current state of this builder.
|
String |
serialize() |
void |
validate()
Called immediately prior to building an instance from this builder.
|
protected static final org.symphonyoss.s2.common.dom.DomSerializer SERIALIZER
public EntityBuilder(EntityFactory<?,?,?> factory)
factory - The factory with which this builder is associated.public abstract org.symphonyoss.s2.common.dom.json.ImmutableJsonObject getJsonObject()
public void getJsonObject(org.symphonyoss.s2.common.dom.json.MutableJsonObject jsonObject)
super.getJsonObject(jsonObject);jsonObject - the JSON representation of the current state of this builder.public org.symphonyoss.s2.common.dom.json.IImmutableJsonDomNode getJsonDomNode()
getJsonDomNode in interface IBaseEntitygetJsonDomNode in interface org.symphonyoss.s2.common.dom.json.IJsonDomNodeProviderpublic String serialize()
serialize in interface IBaseEntitypublic void validate()
throws org.symphonyoss.s2.common.exception.InvalidValueException
org.symphonyoss.s2.common.exception.InvalidValueException - May be thrown if the values in the builder as a whole are not valid.Copyright © 2018 Symphony Software Foundation. All rights reserved.