io.ciera.tool.sql.ooaofooa.component.impl.InterfaceReferenceSetImpl Maven / Gradle / Ivy
package io.ciera.tool.sql.ooaofooa.component.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.component.C_ISet;
import io.ciera.tool.sql.ooaofooa.component.C_POSet;
import io.ciera.tool.sql.ooaofooa.component.DelegationSet;
import io.ciera.tool.sql.ooaofooa.component.InterfaceReference;
import io.ciera.tool.sql.ooaofooa.component.InterfaceReferenceInDelegationSet;
import io.ciera.tool.sql.ooaofooa.component.InterfaceReferenceSet;
import io.ciera.tool.sql.ooaofooa.component.ProvisionSet;
import io.ciera.tool.sql.ooaofooa.component.RequirementSet;
import io.ciera.tool.sql.ooaofooa.component.componentlibrary.ImportedReferenceSet;
import io.ciera.tool.sql.ooaofooa.component.componentlibrary.impl.ImportedReferenceSetImpl;
import io.ciera.tool.sql.ooaofooa.component.impl.C_ISetImpl;
import io.ciera.tool.sql.ooaofooa.component.impl.C_POSetImpl;
import io.ciera.tool.sql.ooaofooa.component.impl.DelegationSetImpl;
import io.ciera.tool.sql.ooaofooa.component.impl.InterfaceReferenceInDelegationSetImpl;
import io.ciera.tool.sql.ooaofooa.component.impl.ProvisionSetImpl;
import io.ciera.tool.sql.ooaofooa.component.impl.RequirementSetImpl;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class InterfaceReferenceSetImpl extends InstanceSet implements InterfaceReferenceSet {
public InterfaceReferenceSetImpl() {
}
public InterfaceReferenceSetImpl(Comparator super InterfaceReference> comp) {
super(comp);
}
// attributes
@Override
public void setPort_Id( UniqueId ref_Port_Id ) throws XtumlException {
for ( InterfaceReference interfacereference : this ) interfacereference.setPort_Id( ref_Port_Id );
}
@Override
public void setFormal_Interface_Id( UniqueId ref_Formal_Interface_Id ) throws XtumlException {
for ( InterfaceReference interfacereference : this ) interfacereference.setFormal_Interface_Id( ref_Formal_Interface_Id );
}
@Override
public void setDelegation_Id( UniqueId ref_Delegation_Id ) throws XtumlException {
for ( InterfaceReference interfacereference : this ) interfacereference.setDelegation_Id( ref_Delegation_Id );
}
@Override
public void setId( UniqueId m_Id ) throws XtumlException {
for ( InterfaceReference interfacereference : this ) interfacereference.setId( m_Id );
}
// selections
@Override
public ProvisionSet R4009_is_a_Provision() throws XtumlException {
ProvisionSet provisionset = new ProvisionSetImpl();
for ( InterfaceReference interfacereference : this ) provisionset.add( interfacereference.R4009_is_a_Provision() );
return provisionset;
}
@Override
public RequirementSet R4009_is_a_Requirement() throws XtumlException {
RequirementSet requirementset = new RequirementSetImpl();
for ( InterfaceReference interfacereference : this ) requirementset.add( interfacereference.R4009_is_a_Requirement() );
return requirementset;
}
@Override
public C_ISet R4012_may_be_defined_by_C_I() throws XtumlException {
C_ISet c_iset = new C_ISetImpl();
for ( InterfaceReference interfacereference : this ) c_iset.add( interfacereference.R4012_may_be_defined_by_C_I() );
return c_iset;
}
@Override
public InterfaceReferenceInDelegationSet R4013_may_delegate_through_InterfaceReferenceInDelegation() throws XtumlException {
InterfaceReferenceInDelegationSet interfacereferenceindelegationset = new InterfaceReferenceInDelegationSetImpl();
for ( InterfaceReference interfacereference : this ) interfacereferenceindelegationset.addAll( interfacereference.R4013_may_delegate_through_InterfaceReferenceInDelegation() );
return interfacereferenceindelegationset;
}
@Override
public DelegationSet R4014_receives_delegation_via_Delegation() throws XtumlException {
DelegationSet delegationset = new DelegationSetImpl();
for ( InterfaceReference interfacereference : this ) delegationset.add( interfacereference.R4014_receives_delegation_via_Delegation() );
return delegationset;
}
@Override
public C_POSet R4016_originates_from_C_PO() throws XtumlException {
C_POSet c_poset = new C_POSetImpl();
for ( InterfaceReference interfacereference : this ) c_poset.add( interfacereference.R4016_originates_from_C_PO() );
return c_poset;
}
@Override
public ImportedReferenceSet R4701_is_imported_ImportedReference() throws XtumlException {
ImportedReferenceSet importedreferenceset = new ImportedReferenceSetImpl();
for ( InterfaceReference interfacereference : this ) importedreferenceset.addAll( interfacereference.R4701_is_imported_ImportedReference() );
return importedreferenceset;
}
@Override
public InterfaceReference nullElement() {
return InterfaceReferenceImpl.EMPTY_INTERFACEREFERENCE;
}
@Override
public InterfaceReferenceSet emptySet() {
return new InterfaceReferenceSetImpl();
}
@Override
public InterfaceReferenceSet emptySet(Comparator super InterfaceReference> comp) {
return new InterfaceReferenceSetImpl(comp);
}
@Override
public List elements() {
return Arrays.asList(toArray(new InterfaceReference[0]));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy