E - The type of the entity produced by this factory.B - The interface type of the entity.M - The type of the model to which the enclosing entity type belongs.public abstract class EntityFactory<E extends IEntity,B extends IEntity,M extends IModel> extends Object implements IEntityFactory<E,B,M>
| Constructor and Description |
|---|
EntityFactory(M model)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
M |
getModel()
Return the model to which this factory belongs.
|
com.google.common.collect.ImmutableList<E> |
newInstanceList(org.symphonyoss.s2.common.dom.json.ImmutableJsonArray jsonArray)
Return a list of new entity instances created from the given JSON array.
|
com.google.common.collect.ImmutableSet<E> |
newInstanceSet(org.symphonyoss.s2.common.dom.json.ImmutableJsonArray jsonArray)
Return a set of new entity instances created from the given JSON array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstancepublic EntityFactory(M model)
model - the model to which this factory belongs.public M getModel()
IEntityFactorypublic com.google.common.collect.ImmutableList<E> newInstanceList(org.symphonyoss.s2.common.dom.json.ImmutableJsonArray jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
IEntityFactorynewInstanceList in interface IEntityFactory<E extends IEntity,B extends IEntity,M extends IModel>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> newInstanceSet(org.symphonyoss.s2.common.dom.json.ImmutableJsonArray jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
IEntityFactorynewInstanceSet in interface IEntityFactory<E extends IEntity,B extends IEntity,M extends IModel>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.Copyright © 2018 Symphony Software Foundation. All rights reserved.