Package systems.dmx.core.impl
Class ModelFactoryImpl
- java.lang.Object
-
- systems.dmx.core.impl.ModelFactoryImpl
-
- All Implemented Interfaces:
ModelFactory
public class ModelFactoryImpl extends Object implements ModelFactory
-
-
Constructor Summary
Constructors Constructor Description ModelFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
childTypeUri(String compDefUri)
Utility.AssocModelImpl
newAssocModel()
AssocModelImpl
newAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2)
AssocModelImpl
newAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2, SimpleValue value, ChildTopicsModel childTopics)
AssocModelImpl
newAssocModel(String typeUri, ChildTopicsModel childTopics)
AssocModelImpl
newAssocModel(String typeUri, PlayerModel player1, PlayerModel player2)
AssocModelImpl
newAssocModel(String typeUri, PlayerModel player1, PlayerModel player2, ChildTopicsModel childTopics)
AssocModelImpl
newAssocModel(org.codehaus.jettison.json.JSONObject assoc)
AssocModelImpl
newAssocModel(AssocModel assoc)
AssocModelImpl
newAssocModel(ChildTopicsModel childTopics)
AssocModel
newAssocModel(SimpleValue value)
systems.dmx.core.impl.AssocPlayerModelImpl
newAssocPlayerModel(long assocId, String roleTypeUri)
systems.dmx.core.impl.AssocPlayerModelImpl
newAssocPlayerModel(org.codehaus.jettison.json.JSONObject assocPlayer)
AssocTypeModelImpl
newAssocTypeModel(String uri, String value, String dataTypeUri)
AssocTypeModelImpl
newAssocTypeModel(org.codehaus.jettison.json.JSONObject assocType)
AssocTypeModelImpl
newAssocTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)
systems.dmx.core.impl.ChildTopicsModelImpl
newChildTopicsModel()
systems.dmx.core.impl.ChildTopicsModelImpl
newChildTopicsModel(org.codehaus.jettison.json.JSONObject values)
systems.dmx.core.impl.CompDefModelImpl
newCompDefModel(String customAssocTypeUri, boolean isIdentityAttr, boolean includeInLabel, String parentTypeUri, String childTypeUri, String childCardinalityUri)
systems.dmx.core.impl.CompDefModelImpl
newCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri)
systems.dmx.core.impl.CompDefModelImpl
newCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri, ViewConfigModel viewConfig)
systems.dmx.core.impl.CompDefModelImpl
newCompDefModel(org.codehaus.jettison.json.JSONObject compDef)
systems.dmx.core.impl.CompDefModelImpl
newCompDefModel(AssocModel assoc, ViewConfigModel viewConfig)
FacetValueModel
newFacetValueModel(String childTypeUri)
FacetValueModel
newFacetValueModel(org.codehaus.jettison.json.JSONObject facetValue)
RelatedAssocModelImpl
newRelatedAssocModel(AssocModel assoc, AssocModel relatingAssoc)
RelatedTopicModelImpl
newRelatedTopicModel(long topicId)
RelatedTopicModelImpl
newRelatedTopicModel(long topicId, AssocModel relatingAssoc)
RelatedTopicModelImpl
newRelatedTopicModel(String topicUri)
RelatedTopicModelImpl
newRelatedTopicModel(String topicUri, AssocModel relatingAssoc)
RelatedTopicModelImpl
newRelatedTopicModel(String topicTypeUri, ChildTopicsModel childTopics)
RelatedTopicModelImpl
newRelatedTopicModel(String topicTypeUri, SimpleValue value)
RelatedTopicModelImpl
newRelatedTopicModel(TopicModel topic)
RelatedTopicModelImpl
newRelatedTopicModel(TopicModel topic, AssocModel relatingAssoc)
systems.dmx.core.impl.RoleTypeModelImpl
newRoleTypeModel(org.codehaus.jettison.json.JSONObject roleType)
systems.dmx.core.impl.RoleTypeModelImpl
newRoleTypeModel(TopicModel roleTypeTopic, ViewConfigModel viewConfig)
TopicDeletionModel
newTopicDeletionModel(long topicId)
TopicDeletionModel
newTopicDeletionModel(long topicId, AssocModel relatingAssoc)
TopicDeletionModel
newTopicDeletionModel(String topicUri)
TopicDeletionModel
newTopicDeletionModel(String topicUri, AssocModel relatingAssoc)
TopicModelImpl
newTopicModel(long id)
TopicModelImpl
newTopicModel(long id, String uri, String typeUri, SimpleValue value, ChildTopicsModel childTopics)
TopicModelImpl
newTopicModel(long id, ChildTopicsModel childTopics)
TopicModelImpl
newTopicModel(long id, SimpleValue value)
TopicModelImpl
newTopicModel(String typeUri)
TopicModelImpl
newTopicModel(String uri, String typeUri)
TopicModelImpl
newTopicModel(String uri, String typeUri, ChildTopicsModel childTopics)
TopicModelImpl
newTopicModel(String uri, String typeUri, SimpleValue value)
TopicModelImpl
newTopicModel(String typeUri, ChildTopicsModel childTopics)
TopicModelImpl
newTopicModel(String typeUri, SimpleValue value)
TopicModelImpl
newTopicModel(org.codehaus.jettison.json.JSONObject topic)
TopicModelImpl
newTopicModel(ChildTopicsModel childTopics)
TopicModelImpl
newTopicModel(TopicModel topic)
systems.dmx.core.impl.TopicPlayerModelImpl
newTopicPlayerModel(long topicId, String roleTypeUri)
systems.dmx.core.impl.TopicPlayerModelImpl
newTopicPlayerModel(long topicId, String topicUri, String roleTypeUri)
systems.dmx.core.impl.TopicPlayerModelImpl
newTopicPlayerModel(String topicUri, String roleTypeUri)
systems.dmx.core.impl.TopicPlayerModelImpl
newTopicPlayerModel(org.codehaus.jettison.json.JSONObject topicPlayer)
TopicReferenceModel
newTopicReferenceModel(long topicId)
TopicReferenceModel
newTopicReferenceModel(long topicId, AssocModel relatingAssoc)
TopicReferenceModel
newTopicReferenceModel(long topicId, ChildTopicsModel relatingAssocChildTopics)
TopicReferenceModel
newTopicReferenceModel(Object topicIdOrUri)
TopicReferenceModel
newTopicReferenceModel(String topicUri)
TopicReferenceModel
newTopicReferenceModel(String topicUri, AssocModel relatingAssoc)
TopicReferenceModel
newTopicReferenceModel(String topicUri, ChildTopicsModel relatingAssocChildTopics)
systems.dmx.core.impl.TopicTypeModelImpl
newTopicTypeModel(String uri, String value, String dataTypeUri)
systems.dmx.core.impl.TopicTypeModelImpl
newTopicTypeModel(org.codehaus.jettison.json.JSONObject topicType)
systems.dmx.core.impl.TopicTypeModelImpl
newTopicTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)
ViewAssoc
newViewAssoc(AssocModel assoc, ViewProps viewProps)
systems.dmx.core.impl.ViewConfigModelImpl
newViewConfigModel()
systems.dmx.core.impl.ViewConfigModelImpl
newViewConfigModel(Iterable<? extends TopicModel> configTopics)
systems.dmx.core.impl.ViewConfigModelImpl
newViewConfigModel(org.codehaus.jettison.json.JSONArray configTopics)
ViewProps
newViewProps()
ViewProps
newViewProps(boolean visibility)
ViewProps
newViewProps(boolean visibility, boolean pinned)
ViewProps
newViewProps(int x, int y)
ViewProps
newViewProps(int x, int y, boolean visibility, boolean pinned)
ViewProps
newViewProps(org.codehaus.jettison.json.JSONObject viewProps)
ViewTopic
newViewTopic(TopicModel topic, ViewProps viewProps)
-
-
-
Method Detail
-
newTopicModel
public TopicModelImpl newTopicModel(long id, String uri, String typeUri, SimpleValue value, ChildTopicsModel childTopics)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(ChildTopicsModel childTopics)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String typeUri)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String typeUri, SimpleValue value)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String typeUri, ChildTopicsModel childTopics)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String uri, String typeUri)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String uri, String typeUri, SimpleValue value)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String uri, String typeUri, ChildTopicsModel childTopics)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(long id)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(long id, SimpleValue value)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(long id, ChildTopicsModel childTopics)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(TopicModel topic)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(org.codehaus.jettison.json.JSONObject topic)
- Specified by:
newTopicModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2, SimpleValue value, ChildTopicsModel childTopics)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(String typeUri, PlayerModel player1, PlayerModel player2)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(String typeUri, PlayerModel player1, PlayerModel player2, ChildTopicsModel childTopics)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel()
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModel newAssocModel(SimpleValue value)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(ChildTopicsModel childTopics)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(String typeUri, ChildTopicsModel childTopics)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(AssocModel assoc)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(org.codehaus.jettison.json.JSONObject assoc)
- Specified by:
newAssocModel
in interfaceModelFactory
-
newChildTopicsModel
public systems.dmx.core.impl.ChildTopicsModelImpl newChildTopicsModel()
- Specified by:
newChildTopicsModel
in interfaceModelFactory
-
newChildTopicsModel
public systems.dmx.core.impl.ChildTopicsModelImpl newChildTopicsModel(org.codehaus.jettison.json.JSONObject values)
- Specified by:
newChildTopicsModel
in interfaceModelFactory
-
childTypeUri
public String childTypeUri(String compDefUri)
Description copied from interface:ModelFactory
Utility.- Specified by:
childTypeUri
in interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(long topicId, String roleTypeUri)
- Specified by:
newTopicPlayerModel
in interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(String topicUri, String roleTypeUri)
- Specified by:
newTopicPlayerModel
in interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(long topicId, String topicUri, String roleTypeUri)
- Specified by:
newTopicPlayerModel
in interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(org.codehaus.jettison.json.JSONObject topicPlayer)
- Specified by:
newTopicPlayerModel
in interfaceModelFactory
-
newAssocPlayerModel
public systems.dmx.core.impl.AssocPlayerModelImpl newAssocPlayerModel(long assocId, String roleTypeUri)
- Specified by:
newAssocPlayerModel
in interfaceModelFactory
-
newAssocPlayerModel
public systems.dmx.core.impl.AssocPlayerModelImpl newAssocPlayerModel(org.codehaus.jettison.json.JSONObject assocPlayer)
- Specified by:
newAssocPlayerModel
in interfaceModelFactory
-
newRoleTypeModel
public systems.dmx.core.impl.RoleTypeModelImpl newRoleTypeModel(TopicModel roleTypeTopic, ViewConfigModel viewConfig)
- Specified by:
newRoleTypeModel
in interfaceModelFactory
-
newRoleTypeModel
public systems.dmx.core.impl.RoleTypeModelImpl newRoleTypeModel(org.codehaus.jettison.json.JSONObject roleType)
- Specified by:
newRoleTypeModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(long topicId)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(long topicId, AssocModel relatingAssoc)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicUri)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicUri, AssocModel relatingAssoc)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicTypeUri, SimpleValue value)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicTypeUri, ChildTopicsModel childTopics)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(TopicModel topic)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(TopicModel topic, AssocModel relatingAssoc)
- Specified by:
newRelatedTopicModel
in interfaceModelFactory
-
newRelatedAssocModel
public RelatedAssocModelImpl newRelatedAssocModel(AssocModel assoc, AssocModel relatingAssoc)
- Specified by:
newRelatedAssocModel
in interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(long topicId)
- Specified by:
newTopicReferenceModel
in interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(long topicId, AssocModel relatingAssoc)
- Specified by:
newTopicReferenceModel
in interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(String topicUri)
- Specified by:
newTopicReferenceModel
in interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(String topicUri, AssocModel relatingAssoc)
- Specified by:
newTopicReferenceModel
in interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(long topicId, ChildTopicsModel relatingAssocChildTopics)
- Specified by:
newTopicReferenceModel
in interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(String topicUri, ChildTopicsModel relatingAssocChildTopics)
- Specified by:
newTopicReferenceModel
in interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(Object topicIdOrUri)
- Specified by:
newTopicReferenceModel
in interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(long topicId)
- Specified by:
newTopicDeletionModel
in interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(long topicId, AssocModel relatingAssoc)
- Specified by:
newTopicDeletionModel
in interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(String topicUri)
- Specified by:
newTopicDeletionModel
in interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(String topicUri, AssocModel relatingAssoc)
- Specified by:
newTopicDeletionModel
in interfaceModelFactory
-
newTopicTypeModel
public systems.dmx.core.impl.TopicTypeModelImpl newTopicTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)
- Specified by:
newTopicTypeModel
in interfaceModelFactory
-
newTopicTypeModel
public systems.dmx.core.impl.TopicTypeModelImpl newTopicTypeModel(String uri, String value, String dataTypeUri)
- Specified by:
newTopicTypeModel
in interfaceModelFactory
-
newTopicTypeModel
public systems.dmx.core.impl.TopicTypeModelImpl newTopicTypeModel(org.codehaus.jettison.json.JSONObject topicType)
- Specified by:
newTopicTypeModel
in interfaceModelFactory
-
newAssocTypeModel
public AssocTypeModelImpl newAssocTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)
- Specified by:
newAssocTypeModel
in interfaceModelFactory
-
newAssocTypeModel
public AssocTypeModelImpl newAssocTypeModel(String uri, String value, String dataTypeUri)
- Specified by:
newAssocTypeModel
in interfaceModelFactory
-
newAssocTypeModel
public AssocTypeModelImpl newAssocTypeModel(org.codehaus.jettison.json.JSONObject assocType)
- Specified by:
newAssocTypeModel
in interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri)
- Specified by:
newCompDefModel
in interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri, ViewConfigModel viewConfig)
- Specified by:
newCompDefModel
in interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(String customAssocTypeUri, boolean isIdentityAttr, boolean includeInLabel, String parentTypeUri, String childTypeUri, String childCardinalityUri)
- Specified by:
newCompDefModel
in interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(AssocModel assoc, ViewConfigModel viewConfig)
- Specified by:
newCompDefModel
in interfaceModelFactory
- Parameters:
assoc
- the underlying association. IMPORTANT: the association must identify its players by URI (not by ID). ### still true?
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(org.codehaus.jettison.json.JSONObject compDef)
- Specified by:
newCompDefModel
in interfaceModelFactory
-
newViewConfigModel
public systems.dmx.core.impl.ViewConfigModelImpl newViewConfigModel()
- Specified by:
newViewConfigModel
in interfaceModelFactory
-
newViewConfigModel
public systems.dmx.core.impl.ViewConfigModelImpl newViewConfigModel(Iterable<? extends TopicModel> configTopics)
- Specified by:
newViewConfigModel
in interfaceModelFactory
-
newViewConfigModel
public systems.dmx.core.impl.ViewConfigModelImpl newViewConfigModel(org.codehaus.jettison.json.JSONArray configTopics)
- Specified by:
newViewConfigModel
in interfaceModelFactory
- Parameters:
configTopics
- may be null
-
newViewTopic
public ViewTopic newViewTopic(TopicModel topic, ViewProps viewProps)
- Specified by:
newViewTopic
in interfaceModelFactory
-
newViewAssoc
public ViewAssoc newViewAssoc(AssocModel assoc, ViewProps viewProps)
- Specified by:
newViewAssoc
in interfaceModelFactory
-
newViewProps
public ViewProps newViewProps()
- Specified by:
newViewProps
in interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(int x, int y)
- Specified by:
newViewProps
in interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(int x, int y, boolean visibility, boolean pinned)
- Specified by:
newViewProps
in interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(boolean visibility)
- Specified by:
newViewProps
in interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(boolean visibility, boolean pinned)
- Specified by:
newViewProps
in interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(org.codehaus.jettison.json.JSONObject viewProps)
- Specified by:
newViewProps
in interfaceModelFactory
-
newFacetValueModel
public FacetValueModel newFacetValueModel(String childTypeUri)
- Specified by:
newFacetValueModel
in interfaceModelFactory
-
newFacetValueModel
public FacetValueModel newFacetValueModel(org.codehaus.jettison.json.JSONObject facetValue)
- Specified by:
newFacetValueModel
in interfaceModelFactory
-
-