001package systems.dmx.core.impl; 002 003import systems.dmx.core.Association; 004import systems.dmx.core.RelatedTopic; 005 006 007 008/** 009 * A Topic-Association pair that is attached to the {@link PersistenceLayer}. 010 */ 011class RelatedTopicImpl extends TopicImpl implements RelatedTopic { 012 013 // ---------------------------------------------------------------------------------------------------- Constructors 014 015 RelatedTopicImpl(RelatedTopicModelImpl model, PersistenceLayer pl) { 016 super(model, pl); 017 } 018 019 // -------------------------------------------------------------------------------------------------- Public Methods 020 021 @Override 022 public Association getRelatingAssociation() { 023 return getModel().getRelatingAssociation().instantiate(); 024 } 025 026 @Override 027 public RelatedTopicModelImpl getModel() { 028 return (RelatedTopicModelImpl) model; 029 } 030}