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.
|
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.dom.json.ImmutableJsonObject jsonObject)
Return a new entity instance created from the given JSON serialization.
|
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.
|
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.List<E> newMutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> 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.Set<E> newMutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> 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.ImmutableList<E> newImmutableList(org.symphonyoss.s2.common.dom.json.JsonArray<?> 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> newImmutableSet(org.symphonyoss.s2.common.dom.json.JsonArray<?> 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.