001package de.deepamehta.core.model; 002 003import java.util.List; 004 005 006 007public interface TopicReferenceModel extends RelatedTopicModel { 008 009 boolean isReferenceById(); 010 011 boolean isReferenceByUri(); 012 013 // --- 014 015 /** 016 * Checks weather this reference refers to the given topic. 017 */ 018 boolean isReferingTo(TopicModel topic); 019 020 /** 021 * From the given topics finds the one this reference refers to. 022 */ 023 RelatedTopicModel findReferencedTopic(List<? extends RelatedTopicModel> topics); 024}