io.ciera.tool.sql.ooaofooa.body.impl.ElseStmtSetImpl Maven / Gradle / Ivy
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_SMTSet;
import io.ciera.tool.sql.ooaofooa.body.BlockSet;
import io.ciera.tool.sql.ooaofooa.body.ElseStmt;
import io.ciera.tool.sql.ooaofooa.body.ElseStmtSet;
import io.ciera.tool.sql.ooaofooa.body.IfStmtSet;
import io.ciera.tool.sql.ooaofooa.body.impl.ACT_SMTSetImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.BlockSetImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.IfStmtSetImpl;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class ElseStmtSetImpl extends InstanceSet implements ElseStmtSet {
public ElseStmtSetImpl() {
}
public ElseStmtSetImpl(Comparator super ElseStmt> comp) {
super(comp);
}
// attributes
@Override
public void setBlock_ID( UniqueId ref_Block_ID ) throws XtumlException {
for ( ElseStmt elsestmt : this ) elsestmt.setBlock_ID( ref_Block_ID );
}
@Override
public void setStatement_ID( UniqueId ref_Statement_ID ) throws XtumlException {
for ( ElseStmt elsestmt : this ) elsestmt.setStatement_ID( ref_Statement_ID );
}
@Override
public void setIf_Statement_ID( UniqueId ref_If_Statement_ID ) throws XtumlException {
for ( ElseStmt elsestmt : this ) elsestmt.setIf_Statement_ID( ref_If_Statement_ID );
}
// selections
@Override
public ACT_SMTSet R603_is_a_ACT_SMT() throws XtumlException {
ACT_SMTSet act_smtset = new ACT_SMTSetImpl();
for ( ElseStmt elsestmt : this ) act_smtset.add( elsestmt.R603_is_a_ACT_SMT() );
return act_smtset;
}
@Override
public BlockSet R606_controls_Block() throws XtumlException {
BlockSet blockset = new BlockSetImpl();
for ( ElseStmt elsestmt : this ) blockset.add( elsestmt.R606_controls_Block() );
return blockset;
}
@Override
public IfStmtSet R683_IfStmt() throws XtumlException {
IfStmtSet ifstmtset = new IfStmtSetImpl();
for ( ElseStmt elsestmt : this ) ifstmtset.add( elsestmt.R683_IfStmt() );
return ifstmtset;
}
@Override
public IfStmtSet R692_IfStmt() throws XtumlException {
IfStmtSet ifstmtset = new IfStmtSetImpl();
for ( ElseStmt elsestmt : this ) ifstmtset.add( elsestmt.R692_IfStmt() );
return ifstmtset;
}
@Override
public ElseStmt nullElement() {
return ElseStmtImpl.EMPTY_ELSESTMT;
}
@Override
public ElseStmtSet emptySet() {
return new ElseStmtSetImpl();
}
@Override
public ElseStmtSet emptySet(Comparator super ElseStmt> comp) {
return new ElseStmtSetImpl(comp);
}
@Override
public List elements() {
return Arrays.asList(toArray(new ElseStmt[0]));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy