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

io.ciera.tool.sql.architecture.statement.impl.VariableInScopeSetImpl Maven / Gradle / Ivy

package io.ciera.tool.sql.architecture.statement.impl;


import io.ciera.runtime.summit.classes.InstanceSet;
import io.ciera.runtime.summit.exceptions.XtumlException;
import io.ciera.tool.sql.architecture.invocable.CodeBlockSet;
import io.ciera.tool.sql.architecture.invocable.impl.CodeBlockSetImpl;
import io.ciera.tool.sql.architecture.statement.VariableInScope;
import io.ciera.tool.sql.architecture.statement.VariableInScopeSet;
import io.ciera.tool.sql.architecture.statement.VariableSet;
import io.ciera.tool.sql.architecture.statement.impl.VariableSetImpl;

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


public class VariableInScopeSetImpl extends InstanceSet implements VariableInScopeSet {

    public VariableInScopeSetImpl() {
    }

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

    // attributes
    @Override
    public void setVar_block_number( String ref_var_block_number ) throws XtumlException {
        for ( VariableInScope variableinscope : this ) variableinscope.setVar_block_number( ref_var_block_number );
    }
    @Override
    public void setVar_name( String ref_var_name ) throws XtumlException {
        for ( VariableInScope variableinscope : this ) variableinscope.setVar_name( ref_var_name );
    }
    @Override
    public void setBody_name( String ref_body_name ) throws XtumlException {
        for ( VariableInScope variableinscope : this ) variableinscope.setBody_name( ref_body_name );
    }
    @Override
    public void setParent_name( String ref_parent_name ) throws XtumlException {
        for ( VariableInScope variableinscope : this ) variableinscope.setParent_name( ref_parent_name );
    }
    @Override
    public void setParent_package( String ref_parent_package ) throws XtumlException {
        for ( VariableInScope variableinscope : this ) variableinscope.setParent_package( ref_parent_package );
    }
    @Override
    public void setBlock_number( String ref_block_number ) throws XtumlException {
        for ( VariableInScope variableinscope : this ) variableinscope.setBlock_number( ref_block_number );
    }


    // selections
    @Override
    public VariableSet R458_has_in_scope_Variable() throws XtumlException {
        VariableSet variableset = new VariableSetImpl();
        for ( VariableInScope variableinscope : this ) variableset.add( variableinscope.R458_has_in_scope_Variable() );
        return variableset;
    }
    @Override
    public CodeBlockSet R458_is_in_scope_for_CodeBlock() throws XtumlException {
        CodeBlockSet codeblockset = new CodeBlockSetImpl();
        for ( VariableInScope variableinscope : this ) codeblockset.add( variableinscope.R458_is_in_scope_for_CodeBlock() );
        return codeblockset;
    }


    @Override
    public VariableInScope nullElement() {
        return VariableInScopeImpl.EMPTY_VARIABLEINSCOPE;
    }

    @Override
    public VariableInScopeSet emptySet() {
      return new VariableInScopeSetImpl();
    }

    @Override
    public VariableInScopeSet emptySet(Comparator comp) {
      return new VariableInScopeSetImpl(comp);
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy