de.deepamehta.core.model
Class TopicModel
java.lang.Object
de.deepamehta.core.model.DeepaMehtaObjectModel
de.deepamehta.core.model.TopicModel
- All Implemented Interfaces:
- Identifiable, JSONEnabled, Cloneable
- Direct Known Subclasses:
- RelatedTopicModel, TopicViewmodel, TypeModel
public class TopicModel
- extends DeepaMehtaObjectModel
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)
|
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 |
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)
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.