de.deepamehta.core.model
Class TopicModel

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.model.DeepaMehtaObjectModel
      extended by de.deepamehta.core.model.TopicModel
All Implemented Interfaces:
Identifiable, JSONEnabled, Cloneable
Direct Known Subclasses:
RelatedTopicModel, TopicViewmodel, TypeModel

public class TopicModel
extends DeepaMehtaObjectModel


Field Summary
 
Fields inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel
childTopics, id, typeUri, uri, value
 
Constructor Summary
TopicModel(ChildTopicsModel childTopics)
           
TopicModel(JSONObject topic)
           
TopicModel(long id)
           
TopicModel(long id, ChildTopicsModel childTopics)
           
TopicModel(long id, String typeUri)
           
TopicModel(long id, String uri, String typeUri, SimpleValue value, ChildTopicsModel childTopics)
           
TopicModel(String typeUri)
           
TopicModel(String typeUri, ChildTopicsModel childTopics)
           
TopicModel(String typeUri, SimpleValue value)
           
TopicModel(String uri, String typeUri)
           
TopicModel(String uri, String typeUri, ChildTopicsModel childTopics)
           
TopicModel(String uri, String typeUri, SimpleValue value)
           
TopicModel(TopicModel topic)
           
 
Method Summary
 TopicModel clone()
           
 RoleModel createRoleModel(String roleTypeUri)
           
 String toString()
           
 
Methods inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel
equals, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopicModel

public TopicModel(ChildTopicsModel childTopics)

TopicModel

public TopicModel(String typeUri)

TopicModel

public TopicModel(String typeUri,
                  SimpleValue value)

TopicModel

public TopicModel(String typeUri,
                  ChildTopicsModel childTopics)

TopicModel

public TopicModel(String uri,
                  String typeUri)

TopicModel

public TopicModel(String uri,
                  String typeUri,
                  SimpleValue value)

TopicModel

public TopicModel(String uri,
                  String typeUri,
                  ChildTopicsModel childTopics)

TopicModel

public TopicModel(long id)

TopicModel

public TopicModel(long id,
                  String typeUri)

TopicModel

public TopicModel(long id,
                  ChildTopicsModel childTopics)

TopicModel

public TopicModel(long id,
                  String uri,
                  String typeUri,
                  SimpleValue value,
                  ChildTopicsModel childTopics)
Parameters:
uri - If null an empty string is set. This is OK.
typeUri - Mandatory. Note: only the internal meta type topic (ID 0) has no type URI (null).
value - If null an empty string value is set. This is OK.
childTopics - If null an empty composite is set. This is OK.

TopicModel

public TopicModel(TopicModel topic)

TopicModel

public TopicModel(JSONObject topic)
Method Detail

createRoleModel

public RoleModel createRoleModel(String roleTypeUri)
Specified by:
createRoleModel in class DeepaMehtaObjectModel

clone

public TopicModel clone()
Overrides:
clone in class DeepaMehtaObjectModel

toString

public String toString()
Overrides:
toString in class DeepaMehtaObjectModel


Copyright © 2015. All Rights Reserved.