E - The type of the entity produced by this factory, i.e. the facade.S - The super type of the entity, i.e. the generated super class.B - The builder type of the entity.public abstract class EntityFactory<E extends IEntity,S extends IEntity,B extends IEntityBuilder> extends Object implements IEntityFactory<E,S,B>
| Constructor and Description |
|---|
EntityFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<E> |
newImmutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a list of new entity instances created from the given JSON array.
|
com.google.common.collect.ImmutableSet<E> |
newImmutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a set of new entity instances created from the given JSON array.
|
E |
newInstance(org.symphonyoss.s2.common.immutable.ImmutableByteArray bytes) |
List<E> |
newMutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a list of new entity instances created from the given JSON array.
|
Set<E> |
newMutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray)
Return a set of new entity instances created from the given JSON array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanonType, newInstance, newInstancepublic List<E> newMutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
IEntityFactorynewMutableList in interface IEntityFactory<E extends IEntity,S extends IEntity,B extends IEntityBuilder>jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.public Set<E> newMutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
IEntityFactorynewMutableSet in interface IEntityFactory<E extends IEntity,S extends IEntity,B extends IEntityBuilder>jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.public com.google.common.collect.ImmutableList<E> newImmutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
IEntityFactorynewImmutableList in interface IEntityFactory<E extends IEntity,S extends IEntity,B extends IEntityBuilder>jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.public com.google.common.collect.ImmutableSet<E> newImmutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
IEntityFactorynewImmutableSet in interface IEntityFactory<E extends IEntity,S extends IEntity,B extends IEntityBuilder>jsonArray - An array of the JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.public E newInstance(org.symphonyoss.s2.common.immutable.ImmutableByteArray bytes) throws org.symphonyoss.s2.common.exception.InvalidValueException
org.symphonyoss.s2.common.exception.InvalidValueExceptionCopyright © 2018 Symphony Software Foundation. All rights reserved.