All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ciera.tool.sql.ooaofooa.interaction.impl.PackageParticipantSetImpl Maven / Gradle / Ivy

package io.ciera.tool.sql.ooaofooa.interaction.impl;


import io.ciera.runtime.summit.classes.InstanceSet;
import io.ciera.runtime.summit.exceptions.XtumlException;
import io.ciera.runtime.summit.types.UniqueId;
import io.ciera.tool.sql.ooaofooa.elementpackaging.EP_PKGSet;
import io.ciera.tool.sql.ooaofooa.elementpackaging.impl.EP_PKGSetImpl;
import io.ciera.tool.sql.ooaofooa.interaction.InteractionParticipantSet;
import io.ciera.tool.sql.ooaofooa.interaction.PackageParticipant;
import io.ciera.tool.sql.ooaofooa.interaction.PackageParticipantSet;
import io.ciera.tool.sql.ooaofooa.interaction.impl.InteractionParticipantSetImpl;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;


public class PackageParticipantSetImpl extends InstanceSet implements PackageParticipantSet {

    public PackageParticipantSetImpl() {
    }

    public PackageParticipantSetImpl(Comparator comp) {
        super(comp);
    }

    // attributes
    @Override
    public void setLabel( String m_Label ) throws XtumlException {
        for ( PackageParticipant packageparticipant : this ) packageparticipant.setLabel( m_Label );
    }
    @Override
    public void setPackage_ID( UniqueId ref_Package_ID ) throws XtumlException {
        for ( PackageParticipant packageparticipant : this ) packageparticipant.setPackage_ID( ref_Package_ID );
    }
    @Override
    public void setDescrip( String m_Descrip ) throws XtumlException {
        for ( PackageParticipant packageparticipant : this ) packageparticipant.setDescrip( m_Descrip );
    }
    @Override
    public void setPart_ID( UniqueId ref_Part_ID ) throws XtumlException {
        for ( PackageParticipant packageparticipant : this ) packageparticipant.setPart_ID( ref_Part_ID );
    }
    @Override
    public void setInformalName( String m_InformalName ) throws XtumlException {
        for ( PackageParticipant packageparticipant : this ) packageparticipant.setInformalName( m_InformalName );
    }
    @Override
    public void setIsFormal( boolean m_isFormal ) throws XtumlException {
        for ( PackageParticipant packageparticipant : this ) packageparticipant.setIsFormal( m_isFormal );
    }


    // selections
    @Override
    public InteractionParticipantSet R930_is_a_InteractionParticipant() throws XtumlException {
        InteractionParticipantSet interactionparticipantset = new InteractionParticipantSetImpl();
        for ( PackageParticipant packageparticipant : this ) interactionparticipantset.add( packageparticipant.R930_is_a_InteractionParticipant() );
        return interactionparticipantset;
    }
    @Override
    public EP_PKGSet R956_represents_EP_PKG() throws XtumlException {
        EP_PKGSet ep_pkgset = new EP_PKGSetImpl();
        for ( PackageParticipant packageparticipant : this ) ep_pkgset.add( packageparticipant.R956_represents_EP_PKG() );
        return ep_pkgset;
    }


    @Override
    public PackageParticipant nullElement() {
        return PackageParticipantImpl.EMPTY_PACKAGEPARTICIPANT;
    }

    @Override
    public PackageParticipantSet emptySet() {
      return new PackageParticipantSetImpl();
    }

    @Override
    public PackageParticipantSet emptySet(Comparator comp) {
      return new PackageParticipantSetImpl(comp);
    }

    @Override
    public List elements() {
        return Arrays.asList(toArray(new PackageParticipant[0]));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy