de.deepamehta.core.model
Class TopicReferenceModel
java.lang.Object
de.deepamehta.core.model.DeepaMehtaObjectModel
de.deepamehta.core.model.TopicModel
de.deepamehta.core.model.RelatedTopicModel
de.deepamehta.core.model.TopicReferenceModel
- All Implemented Interfaces:
- Identifiable, JSONEnabled, Cloneable
public class TopicReferenceModel
- extends RelatedTopicModel
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 |
TopicReferenceModel
public TopicReferenceModel(long topicId)
TopicReferenceModel
public TopicReferenceModel(long topicId,
AssociationModel relatingAssoc)
TopicReferenceModel
public TopicReferenceModel(String topicUri)
TopicReferenceModel
public TopicReferenceModel(String topicUri,
AssociationModel relatingAssoc)
TopicReferenceModel
public TopicReferenceModel(long topicId,
ChildTopicsModel relatingAssocChildTopics)
TopicReferenceModel
public TopicReferenceModel(String topicUri,
ChildTopicsModel relatingAssocChildTopics)
isReferenceById
public boolean isReferenceById()
isReferenceByUri
public boolean isReferenceByUri()
isReferingTo
public boolean isReferingTo(Topic topic)
- Checks weather this reference refers to the given topic.
findReferencedTopic
public RelatedTopic findReferencedTopic(List<RelatedTopic> topics)
- From the given topics finds the one this reference refers to.
toString
public String toString()
- Overrides:
toString
in class RelatedTopicModel
Copyright © 2015. All Rights Reserved.