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

io.ciera.tool.sql.ooaofooa.usecase.impl.IncludeSetImpl Maven / Gradle / Ivy

package io.ciera.tool.sql.ooaofooa.usecase.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.usecase.Include;
import io.ciera.tool.sql.ooaofooa.usecase.IncludeSet;
import io.ciera.tool.sql.ooaofooa.usecase.UseCaseAssociationSet;
import io.ciera.tool.sql.ooaofooa.usecase.impl.UseCaseAssociationSetImpl;

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


public class IncludeSetImpl extends InstanceSet implements IncludeSet {

    public IncludeSetImpl() {
    }

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

    // attributes
    @Override
    public void setDescrip( String m_Descrip ) throws XtumlException {
        for ( Include include : this ) include.setDescrip( m_Descrip );
    }
    @Override
    public void setAssoc_ID( UniqueId ref_Assoc_ID ) throws XtumlException {
        for ( Include include : this ) include.setAssoc_ID( ref_Assoc_ID );
    }


    // selections
    @Override
    public UseCaseAssociationSet R1210_is_a_UseCaseAssociation() throws XtumlException {
        UseCaseAssociationSet usecaseassociationset = new UseCaseAssociationSetImpl();
        for ( Include include : this ) usecaseassociationset.add( include.R1210_is_a_UseCaseAssociation() );
        return usecaseassociationset;
    }


    @Override
    public Include nullElement() {
        return IncludeImpl.EMPTY_INCLUDE;
    }

    @Override
    public IncludeSet emptySet() {
      return new IncludeSetImpl();
    }

    @Override
    public IncludeSet emptySet(Comparator comp) {
      return new IncludeSetImpl(comp);
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy