E - The type of the entity produced by this factory.B - The base type of the entity.M - The type of the model to which the enclosing entity type belongs.public interface IEntityFactory<E extends IEntity,B extends IEntity,M extends IModel>
| Modifier and Type | Method and Description |
|---|---|
M |
getModel()
Return the model to which this factory belongs.
|
E |
newInstance(org.symphonyoss.s2.common.dom.json.ImmutableJsonObject jsonObject)
Return a new entity instance created from the given JSON serialization.
|
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.
|
M getModel()
E newInstance(org.symphonyoss.s2.common.dom.json.ImmutableJsonObject jsonObject) throws org.symphonyoss.s2.common.exception.InvalidValueException
jsonObject - The JSON serialized form of the required entity.org.symphonyoss.s2.common.exception.InvalidValueException - If the given JSON is not valid.com.google.common.collect.ImmutableList<E> newInstanceList(org.symphonyoss.s2.common.dom.json.ImmutableJsonArray jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
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.com.google.common.collect.ImmutableSet<E> newInstanceSet(org.symphonyoss.s2.common.dom.json.ImmutableJsonArray jsonArray) throws org.symphonyoss.s2.common.exception.InvalidValueException
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.