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

io.ciera.tool.sql.ooaofooa.body.impl.ACT_CONSetImpl 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.ACT_CON;
import io.ciera.tool.sql.ooaofooa.body.ACT_CONSet;
import io.ciera.tool.sql.ooaofooa.body.ACT_SMTSet;
import io.ciera.tool.sql.ooaofooa.body.impl.ACT_SMTSetImpl;

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


public class ACT_CONSetImpl extends InstanceSet implements ACT_CONSet {

    public ACT_CONSetImpl() {
    }

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

    // attributes
    @Override
    public void setStatement_ID( UniqueId ref_Statement_ID ) throws XtumlException {
        for ( ACT_CON act_con : this ) act_con.setStatement_ID( ref_Statement_ID );
    }


    // selections
    @Override
    public ACT_SMTSet R603_is_a_ACT_SMT() throws XtumlException {
        ACT_SMTSet act_smtset = new ACT_SMTSetImpl();
        for ( ACT_CON act_con : this ) act_smtset.add( act_con.R603_is_a_ACT_SMT() );
        return act_smtset;
    }


    @Override
    public ACT_CON nullElement() {
        return ACT_CONImpl.EMPTY_ACT_CON;
    }

    @Override
    public ACT_CONSet emptySet() {
      return new ACT_CONSetImpl();
    }

    @Override
    public ACT_CONSet emptySet(Comparator comp) {
      return new ACT_CONSetImpl(comp);
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy