001package systems.dmx.core.impl;
002
003import systems.dmx.core.Association;
004import systems.dmx.core.AssociationRole;
005
006
007
008/**
009 * An association role that is attached to the {@link PersistenceLayer}.
010 */
011class AssociationRoleImpl extends RoleImpl implements AssociationRole {
012
013    // ---------------------------------------------------------------------------------------------------- Constructors
014
015    AssociationRoleImpl(AssociationRoleModelImpl model, AssociationModelImpl assoc) {
016        super(model, assoc);
017    }
018
019    // -------------------------------------------------------------------------------------------------- Public Methods
020
021
022
023    // === AssociationRole Implementation ===
024
025    @Override
026    public Association getAssociation() {
027        return (Association) getPlayer();
028    }
029
030
031
032    // === RoleImpl Overrides ===
033
034    @Override
035    public AssociationRoleModelImpl getModel() {
036        return (AssociationRoleModelImpl) model;
037    }
038}