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.TopicReferenceModel
All Implemented Interfaces:
Identifiable, JSONEnabled, Cloneable

public class TopicReferenceModel
extends TopicModel


Field Summary
 
Fields inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel
composite, id, typeUri, uri, value
 
Constructor Summary
TopicReferenceModel(long topicId)
           
TopicReferenceModel(String uri)
           
 
Method Summary
 boolean isReferenceById()
           
 boolean isReferenceByUri()
           
 boolean isReferingTo(Topic topic)
          Checks weather this reference refers to the given topic.
 boolean isReferingToAny(List<Topic> topics)
          Checks weather this reference refers to any of the given topics.
 
Methods inherited from class de.deepamehta.core.model.TopicModel
clone, createRoleModel, toString
 
Methods inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel
equals, getCompositeValueModel, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setCompositeValue, 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

TopicReferenceModel

public TopicReferenceModel(long topicId)

TopicReferenceModel

public TopicReferenceModel(String uri)
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.


isReferingToAny

public boolean isReferingToAny(List<Topic> topics)
Checks weather this reference refers to any of the given topics.



Copyright © 2013. All Rights Reserved.