B - Fluent type, determines the type of the "this" reference returned by with methods.public abstract class EntityBuilder<B extends EntityBuilder<B>> extends Object implements IEntityBuilder, org.symphonyoss.s2.common.dom.json.IJsonDomNodeProvider, IBaseEntity
| Modifier and Type | Field and Description |
|---|---|
protected static org.symphonyoss.s2.common.dom.DomSerializer |
SERIALIZER |
| Modifier | Constructor and Description |
|---|---|
protected |
EntityBuilder(Class<B> type) |
protected |
EntityBuilder(Class<B> type,
IBaseEntity other) |
| Modifier and Type | Method and Description |
|---|---|
abstract IEntity |
build() |
com.google.common.collect.ImmutableSet<String> |
getCanonUnknownKeys()
The set of keys present in the JSON from which this object was deserialized which are not defined by
the schema.
|
org.symphonyoss.s2.common.dom.json.IImmutableJsonDomNode |
getJsonDomNode() |
void |
getJsonObject(org.symphonyoss.s2.common.dom.json.MutableJsonObject jsonObject)
Fill in the JSON representation of the current state of this builder.
|
protected B |
self() |
org.symphonyoss.s2.common.immutable.ImmutableByteArray |
serialize() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanonMajorVersion, getCanonMinorVersion, getCanonType, getJsonObjectprotected static final org.symphonyoss.s2.common.dom.DomSerializer SERIALIZER
protected EntityBuilder(Class<B> type, IBaseEntity other)
protected B self()
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 com.google.common.collect.ImmutableSet<String> getCanonUnknownKeys()
IEntitygetCanonUnknownKeys in interface IEntitypublic org.symphonyoss.s2.common.immutable.ImmutableByteArray serialize()
serialize in interface IBaseEntitypublic abstract IEntity build() throws org.symphonyoss.s2.common.exception.InvalidValueException
org.symphonyoss.s2.common.exception.InvalidValueExceptionCopyright © 2018 Symphony Software Foundation. All rights reserved.