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

io.ciera.tool.sql.ooaofooa.event.impl.CreateEventToCreatorSetImpl Maven / Gradle / Ivy

package io.ciera.tool.sql.ooaofooa.event.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.event.CreateEventToCreator;
import io.ciera.tool.sql.ooaofooa.event.CreateEventToCreatorSet;
import io.ciera.tool.sql.ooaofooa.event.CreateSMEventStatementSet;
import io.ciera.tool.sql.ooaofooa.event.impl.CreateSMEventStatementSetImpl;

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


public class CreateEventToCreatorSetImpl extends InstanceSet implements CreateEventToCreatorSet {

    public CreateEventToCreatorSetImpl() {
    }

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

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


    // selections
    @Override
    public CreateSMEventStatementSet R704_is_a_CreateSMEventStatement() throws XtumlException {
        CreateSMEventStatementSet createsmeventstatementset = new CreateSMEventStatementSetImpl();
        for ( CreateEventToCreator createeventtocreator : this ) createsmeventstatementset.add( createeventtocreator.R704_is_a_CreateSMEventStatement() );
        return createsmeventstatementset;
    }


    @Override
    public CreateEventToCreator nullElement() {
        return CreateEventToCreatorImpl.EMPTY_CREATEEVENTTOCREATOR;
    }

    @Override
    public CreateEventToCreatorSet emptySet() {
      return new CreateEventToCreatorSetImpl();
    }

    @Override
    public CreateEventToCreatorSet emptySet(Comparator comp) {
      return new CreateEventToCreatorSetImpl(comp);
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy