de.deepamehta.core.model
Class TopicReferenceModel

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

public class TopicReferenceModel
extends RelatedTopicModel


Field Summary
 
Fields inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel
childTopics, id, typeUri, uri, value
 
Constructor Summary
TopicReferenceModel(long topicId)
           
TopicReferenceModel(long topicId, AssociationModel relatingAssoc)
           
TopicReferenceModel(long topicId, ChildTopicsModel relatingAssocChildTopics)
           
TopicReferenceModel(String topicUri)
           
TopicReferenceModel(String topicUri, AssociationModel relatingAssoc)
           
TopicReferenceModel(String topicUri, ChildTopicsModel relatingAssocChildTopics)
           
 
Method Summary
 RelatedTopic findReferencedTopic(List<RelatedTopic> topics)
          From the given topics finds the one this reference refers to.
 boolean isReferenceById()
           
 boolean isReferenceByUri()
           
 boolean isReferingTo(Topic topic)
          Checks weather this reference refers to the given topic.
 String toString()
           
 
Methods inherited from class de.deepamehta.core.model.RelatedTopicModel
clone, getRelatingAssociation, toJSON
 
Methods inherited from class de.deepamehta.core.model.TopicModel
createRoleModel
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.