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

io.ciera.tool.sql.ooaofooa.body.impl.BodyInComponentSetImpl Maven / Gradle / Ivy

There is a newer version: 2.7.3
Show newest version
package io.ciera.tool.sql.ooaofooa.body.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.body.BodyInComponent;
import io.ciera.tool.sql.ooaofooa.body.BodyInComponentSet;
import io.ciera.tool.sql.ooaofooa.body.BodySet;
import io.ciera.tool.sql.ooaofooa.body.impl.BodySetImpl;
import io.ciera.tool.sql.ooaofooa.component.C_CSet;
import io.ciera.tool.sql.ooaofooa.component.impl.C_CSetImpl;

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


public class BodyInComponentSetImpl extends InstanceSet implements BodyInComponentSet {

    public BodyInComponentSetImpl() {
    }

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

    // attributes
    @Override
    public void setComponent_Id( UniqueId ref_Component_Id ) throws XtumlException {
        for ( BodyInComponent bodyincomponent : this ) bodyincomponent.setComponent_Id( ref_Component_Id );
    }
    @Override
    public void setAction_ID( UniqueId ref_Action_ID ) throws XtumlException {
        for ( BodyInComponent bodyincomponent : this ) bodyincomponent.setAction_ID( ref_Action_ID );
    }


    // selections
    @Override
    public BodySet R694_has_declared_Body() throws XtumlException {
        BodySet bodyset = new BodySetImpl();
        for ( BodyInComponent bodyincomponent : this ) bodyset.add( bodyincomponent.R694_has_declared_Body() );
        return bodyset;
    }
    @Override
    public C_CSet R694_is_declared_in_C_C() throws XtumlException {
        C_CSet c_cset = new C_CSetImpl();
        for ( BodyInComponent bodyincomponent : this ) c_cset.add( bodyincomponent.R694_is_declared_in_C_C() );
        return c_cset;
    }


    @Override
    public BodyInComponent nullElement() {
        return BodyInComponentImpl.EMPTY_BODYINCOMPONENT;
    }

    @Override
    public BodyInComponentSet emptySet() {
      return new BodyInComponentSetImpl();
    }

    @Override
    public BodyInComponentSet emptySet(Comparator comp) {
      return new BodyInComponentSetImpl(comp);
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy