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 StringchildTypeUri(String compDefUri)Utility.AssocModelImplnewAssocModel()AssocModelImplnewAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2)AssocModelImplnewAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2, SimpleValue value, ChildTopicsModel childTopics)AssocModelImplnewAssocModel(String typeUri, ChildTopicsModel childTopics)AssocModelImplnewAssocModel(String typeUri, PlayerModel player1, PlayerModel player2)AssocModelImplnewAssocModel(String typeUri, PlayerModel player1, PlayerModel player2, ChildTopicsModel childTopics)AssocModelImplnewAssocModel(org.codehaus.jettison.json.JSONObject assoc)AssocModelImplnewAssocModel(AssocModel assoc)AssocModelImplnewAssocModel(ChildTopicsModel childTopics)AssocModelnewAssocModel(SimpleValue value)systems.dmx.core.impl.AssocPlayerModelImplnewAssocPlayerModel(long assocId, String roleTypeUri)systems.dmx.core.impl.AssocPlayerModelImplnewAssocPlayerModel(org.codehaus.jettison.json.JSONObject assocPlayer)AssocTypeModelImplnewAssocTypeModel(String uri, String value, String dataTypeUri)AssocTypeModelImplnewAssocTypeModel(org.codehaus.jettison.json.JSONObject assocType)AssocTypeModelImplnewAssocTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)systems.dmx.core.impl.ChildTopicsModelImplnewChildTopicsModel()systems.dmx.core.impl.ChildTopicsModelImplnewChildTopicsModel(org.codehaus.jettison.json.JSONObject values)systems.dmx.core.impl.CompDefModelImplnewCompDefModel(String customAssocTypeUri, boolean isIdentityAttr, boolean includeInLabel, String parentTypeUri, String childTypeUri, String childCardinalityUri)systems.dmx.core.impl.CompDefModelImplnewCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri)systems.dmx.core.impl.CompDefModelImplnewCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri, ViewConfigModel viewConfig)systems.dmx.core.impl.CompDefModelImplnewCompDefModel(org.codehaus.jettison.json.JSONObject compDef)systems.dmx.core.impl.CompDefModelImplnewCompDefModel(AssocModel assoc, ViewConfigModel viewConfig)FacetValueModelnewFacetValueModel(String childTypeUri)FacetValueModelnewFacetValueModel(org.codehaus.jettison.json.JSONObject facetValue)RelatedAssocModelImplnewRelatedAssocModel(AssocModel assoc, AssocModel relatingAssoc)RelatedTopicModelImplnewRelatedTopicModel(long topicId)RelatedTopicModelImplnewRelatedTopicModel(long topicId, AssocModel relatingAssoc)RelatedTopicModelImplnewRelatedTopicModel(String topicUri)RelatedTopicModelImplnewRelatedTopicModel(String topicUri, AssocModel relatingAssoc)RelatedTopicModelImplnewRelatedTopicModel(String topicTypeUri, ChildTopicsModel childTopics)RelatedTopicModelImplnewRelatedTopicModel(String topicTypeUri, SimpleValue value)RelatedTopicModelImplnewRelatedTopicModel(TopicModel topic)RelatedTopicModelImplnewRelatedTopicModel(TopicModel topic, AssocModel relatingAssoc)systems.dmx.core.impl.RoleTypeModelImplnewRoleTypeModel(org.codehaus.jettison.json.JSONObject roleType)systems.dmx.core.impl.RoleTypeModelImplnewRoleTypeModel(TopicModel roleTypeTopic, ViewConfigModel viewConfig)TopicDeletionModelnewTopicDeletionModel(long topicId)TopicDeletionModelnewTopicDeletionModel(long topicId, AssocModel relatingAssoc)TopicDeletionModelnewTopicDeletionModel(String topicUri)TopicDeletionModelnewTopicDeletionModel(String topicUri, AssocModel relatingAssoc)TopicModelImplnewTopicModel(long id)TopicModelImplnewTopicModel(long id, String uri, String typeUri, SimpleValue value, ChildTopicsModel childTopics)TopicModelImplnewTopicModel(long id, ChildTopicsModel childTopics)TopicModelImplnewTopicModel(long id, SimpleValue value)TopicModelImplnewTopicModel(String typeUri)TopicModelImplnewTopicModel(String uri, String typeUri)TopicModelImplnewTopicModel(String uri, String typeUri, ChildTopicsModel childTopics)TopicModelImplnewTopicModel(String uri, String typeUri, SimpleValue value)TopicModelImplnewTopicModel(String typeUri, ChildTopicsModel childTopics)TopicModelImplnewTopicModel(String typeUri, SimpleValue value)TopicModelImplnewTopicModel(org.codehaus.jettison.json.JSONObject topic)TopicModelImplnewTopicModel(ChildTopicsModel childTopics)TopicModelImplnewTopicModel(TopicModel topic)systems.dmx.core.impl.TopicPlayerModelImplnewTopicPlayerModel(long topicId, String roleTypeUri)systems.dmx.core.impl.TopicPlayerModelImplnewTopicPlayerModel(long topicId, String topicUri, String roleTypeUri)systems.dmx.core.impl.TopicPlayerModelImplnewTopicPlayerModel(String topicUri, String roleTypeUri)systems.dmx.core.impl.TopicPlayerModelImplnewTopicPlayerModel(org.codehaus.jettison.json.JSONObject topicPlayer)TopicReferenceModelnewTopicReferenceModel(long topicId)TopicReferenceModelnewTopicReferenceModel(long topicId, AssocModel relatingAssoc)TopicReferenceModelnewTopicReferenceModel(long topicId, ChildTopicsModel relatingAssocChildTopics)TopicReferenceModelnewTopicReferenceModel(Object topicIdOrUri)TopicReferenceModelnewTopicReferenceModel(String topicUri)TopicReferenceModelnewTopicReferenceModel(String topicUri, AssocModel relatingAssoc)TopicReferenceModelnewTopicReferenceModel(String topicUri, ChildTopicsModel relatingAssocChildTopics)systems.dmx.core.impl.TopicTypeModelImplnewTopicTypeModel(String uri, String value, String dataTypeUri)systems.dmx.core.impl.TopicTypeModelImplnewTopicTypeModel(org.codehaus.jettison.json.JSONObject topicType)systems.dmx.core.impl.TopicTypeModelImplnewTopicTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)ViewAssocnewViewAssoc(AssocModel assoc, ViewProps viewProps)systems.dmx.core.impl.ViewConfigModelImplnewViewConfigModel()systems.dmx.core.impl.ViewConfigModelImplnewViewConfigModel(Iterable<? extends TopicModel> configTopics)systems.dmx.core.impl.ViewConfigModelImplnewViewConfigModel(org.codehaus.jettison.json.JSONArray configTopics)ViewPropsnewViewProps()ViewPropsnewViewProps(boolean visibility)ViewPropsnewViewProps(boolean visibility, boolean pinned)ViewPropsnewViewProps(int x, int y)ViewPropsnewViewProps(int x, int y, boolean visibility, boolean pinned)ViewPropsnewViewProps(org.codehaus.jettison.json.JSONObject viewProps)ViewTopicnewViewTopic(TopicModel topic, ViewProps viewProps)
-
-
-
Method Detail
-
newTopicModel
public TopicModelImpl newTopicModel(long id, String uri, String typeUri, SimpleValue value, ChildTopicsModel childTopics)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(ChildTopicsModel childTopics)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String typeUri)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String typeUri, SimpleValue value)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String typeUri, ChildTopicsModel childTopics)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String uri, String typeUri)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String uri, String typeUri, SimpleValue value)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(String uri, String typeUri, ChildTopicsModel childTopics)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(long id)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(long id, SimpleValue value)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(long id, ChildTopicsModel childTopics)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(TopicModel topic)
- Specified by:
newTopicModelin interfaceModelFactory
-
newTopicModel
public TopicModelImpl newTopicModel(org.codehaus.jettison.json.JSONObject topic)
- Specified by:
newTopicModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2, SimpleValue value, ChildTopicsModel childTopics)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(long id, String uri, String typeUri, PlayerModel player1, PlayerModel player2)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(String typeUri, PlayerModel player1, PlayerModel player2)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(String typeUri, PlayerModel player1, PlayerModel player2, ChildTopicsModel childTopics)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel()
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModel newAssocModel(SimpleValue value)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(ChildTopicsModel childTopics)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(String typeUri, ChildTopicsModel childTopics)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(AssocModel assoc)
- Specified by:
newAssocModelin interfaceModelFactory
-
newAssocModel
public AssocModelImpl newAssocModel(org.codehaus.jettison.json.JSONObject assoc)
- Specified by:
newAssocModelin interfaceModelFactory
-
newChildTopicsModel
public systems.dmx.core.impl.ChildTopicsModelImpl newChildTopicsModel()
- Specified by:
newChildTopicsModelin interfaceModelFactory
-
newChildTopicsModel
public systems.dmx.core.impl.ChildTopicsModelImpl newChildTopicsModel(org.codehaus.jettison.json.JSONObject values)
- Specified by:
newChildTopicsModelin interfaceModelFactory
-
childTypeUri
public String childTypeUri(String compDefUri)
Description copied from interface:ModelFactoryUtility.- Specified by:
childTypeUriin interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(long topicId, String roleTypeUri)- Specified by:
newTopicPlayerModelin interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(String topicUri, String roleTypeUri)
- Specified by:
newTopicPlayerModelin interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(long topicId, String topicUri, String roleTypeUri)- Specified by:
newTopicPlayerModelin interfaceModelFactory
-
newTopicPlayerModel
public systems.dmx.core.impl.TopicPlayerModelImpl newTopicPlayerModel(org.codehaus.jettison.json.JSONObject topicPlayer)
- Specified by:
newTopicPlayerModelin interfaceModelFactory
-
newAssocPlayerModel
public systems.dmx.core.impl.AssocPlayerModelImpl newAssocPlayerModel(long assocId, String roleTypeUri)- Specified by:
newAssocPlayerModelin interfaceModelFactory
-
newAssocPlayerModel
public systems.dmx.core.impl.AssocPlayerModelImpl newAssocPlayerModel(org.codehaus.jettison.json.JSONObject assocPlayer)
- Specified by:
newAssocPlayerModelin interfaceModelFactory
-
newRoleTypeModel
public systems.dmx.core.impl.RoleTypeModelImpl newRoleTypeModel(TopicModel roleTypeTopic, ViewConfigModel viewConfig)
- Specified by:
newRoleTypeModelin interfaceModelFactory
-
newRoleTypeModel
public systems.dmx.core.impl.RoleTypeModelImpl newRoleTypeModel(org.codehaus.jettison.json.JSONObject roleType)
- Specified by:
newRoleTypeModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(long topicId)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(long topicId, AssocModel relatingAssoc)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicUri)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicUri, AssocModel relatingAssoc)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicTypeUri, SimpleValue value)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(String topicTypeUri, ChildTopicsModel childTopics)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(TopicModel topic)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedTopicModel
public RelatedTopicModelImpl newRelatedTopicModel(TopicModel topic, AssocModel relatingAssoc)
- Specified by:
newRelatedTopicModelin interfaceModelFactory
-
newRelatedAssocModel
public RelatedAssocModelImpl newRelatedAssocModel(AssocModel assoc, AssocModel relatingAssoc)
- Specified by:
newRelatedAssocModelin interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(long topicId)
- Specified by:
newTopicReferenceModelin interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(long topicId, AssocModel relatingAssoc)
- Specified by:
newTopicReferenceModelin interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(String topicUri)
- Specified by:
newTopicReferenceModelin interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(String topicUri, AssocModel relatingAssoc)
- Specified by:
newTopicReferenceModelin interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(long topicId, ChildTopicsModel relatingAssocChildTopics)
- Specified by:
newTopicReferenceModelin interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(String topicUri, ChildTopicsModel relatingAssocChildTopics)
- Specified by:
newTopicReferenceModelin interfaceModelFactory
-
newTopicReferenceModel
public TopicReferenceModel newTopicReferenceModel(Object topicIdOrUri)
- Specified by:
newTopicReferenceModelin interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(long topicId)
- Specified by:
newTopicDeletionModelin interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(long topicId, AssocModel relatingAssoc)
- Specified by:
newTopicDeletionModelin interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(String topicUri)
- Specified by:
newTopicDeletionModelin interfaceModelFactory
-
newTopicDeletionModel
public TopicDeletionModel newTopicDeletionModel(String topicUri, AssocModel relatingAssoc)
- Specified by:
newTopicDeletionModelin interfaceModelFactory
-
newTopicTypeModel
public systems.dmx.core.impl.TopicTypeModelImpl newTopicTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)
- Specified by:
newTopicTypeModelin interfaceModelFactory
-
newTopicTypeModel
public systems.dmx.core.impl.TopicTypeModelImpl newTopicTypeModel(String uri, String value, String dataTypeUri)
- Specified by:
newTopicTypeModelin interfaceModelFactory
-
newTopicTypeModel
public systems.dmx.core.impl.TopicTypeModelImpl newTopicTypeModel(org.codehaus.jettison.json.JSONObject topicType)
- Specified by:
newTopicTypeModelin interfaceModelFactory
-
newAssocTypeModel
public AssocTypeModelImpl newAssocTypeModel(TopicModel typeTopic, String dataTypeUri, List<CompDefModel> compDefs, ViewConfigModel viewConfig)
- Specified by:
newAssocTypeModelin interfaceModelFactory
-
newAssocTypeModel
public AssocTypeModelImpl newAssocTypeModel(String uri, String value, String dataTypeUri)
- Specified by:
newAssocTypeModelin interfaceModelFactory
-
newAssocTypeModel
public AssocTypeModelImpl newAssocTypeModel(org.codehaus.jettison.json.JSONObject assocType)
- Specified by:
newAssocTypeModelin interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri)
- Specified by:
newCompDefModelin interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(String parentTypeUri, String childTypeUri, String childCardinalityUri, ViewConfigModel viewConfig)
- Specified by:
newCompDefModelin interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(String customAssocTypeUri, boolean isIdentityAttr, boolean includeInLabel, String parentTypeUri, String childTypeUri, String childCardinalityUri)
- Specified by:
newCompDefModelin interfaceModelFactory
-
newCompDefModel
public systems.dmx.core.impl.CompDefModelImpl newCompDefModel(AssocModel assoc, ViewConfigModel viewConfig)
- Specified by:
newCompDefModelin 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:
newCompDefModelin interfaceModelFactory
-
newViewConfigModel
public systems.dmx.core.impl.ViewConfigModelImpl newViewConfigModel()
- Specified by:
newViewConfigModelin interfaceModelFactory
-
newViewConfigModel
public systems.dmx.core.impl.ViewConfigModelImpl newViewConfigModel(Iterable<? extends TopicModel> configTopics)
- Specified by:
newViewConfigModelin interfaceModelFactory
-
newViewConfigModel
public systems.dmx.core.impl.ViewConfigModelImpl newViewConfigModel(org.codehaus.jettison.json.JSONArray configTopics)
- Specified by:
newViewConfigModelin interfaceModelFactory- Parameters:
configTopics- may be null
-
newViewTopic
public ViewTopic newViewTopic(TopicModel topic, ViewProps viewProps)
- Specified by:
newViewTopicin interfaceModelFactory
-
newViewAssoc
public ViewAssoc newViewAssoc(AssocModel assoc, ViewProps viewProps)
- Specified by:
newViewAssocin interfaceModelFactory
-
newViewProps
public ViewProps newViewProps()
- Specified by:
newViewPropsin interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(int x, int y)
- Specified by:
newViewPropsin interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(int x, int y, boolean visibility, boolean pinned)
- Specified by:
newViewPropsin interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(boolean visibility)
- Specified by:
newViewPropsin interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(boolean visibility, boolean pinned)
- Specified by:
newViewPropsin interfaceModelFactory
-
newViewProps
public ViewProps newViewProps(org.codehaus.jettison.json.JSONObject viewProps)
- Specified by:
newViewPropsin interfaceModelFactory
-
newFacetValueModel
public FacetValueModel newFacetValueModel(String childTypeUri)
- Specified by:
newFacetValueModelin interfaceModelFactory
-
newFacetValueModel
public FacetValueModel newFacetValueModel(org.codehaus.jettison.json.JSONObject facetValue)
- Specified by:
newFacetValueModelin interfaceModelFactory
-
-