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

io.ciera.tool.sql.loader.impl.StringLoaderSetImpl Maven / Gradle / Ivy

package io.ciera.tool.sql.loader.impl;


import io.ciera.runtime.summit.classes.InstanceSet;
import io.ciera.runtime.summit.exceptions.XtumlException;
import io.ciera.tool.sql.loader.AttributeLoaderSet;
import io.ciera.tool.sql.loader.StringLoader;
import io.ciera.tool.sql.loader.StringLoaderSet;
import io.ciera.tool.sql.loader.impl.AttributeLoaderSetImpl;

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


public class StringLoaderSetImpl extends InstanceSet implements StringLoaderSet {

    public StringLoaderSetImpl() {
    }

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

    // attributes
    @Override
    public void setClass_name( String ref_class_name ) throws XtumlException {
        for ( StringLoader stringloader : this ) stringloader.setClass_name( ref_class_name );
    }
    @Override
    public void setLoader_name( String ref_loader_name ) throws XtumlException {
        for ( StringLoader stringloader : this ) stringloader.setLoader_name( ref_loader_name );
    }
    @Override
    public void setAttr_name( String ref_attr_name ) throws XtumlException {
        for ( StringLoader stringloader : this ) stringloader.setAttr_name( ref_attr_name );
    }
    @Override
    public void setLoader_package( String ref_loader_package ) throws XtumlException {
        for ( StringLoader stringloader : this ) stringloader.setLoader_package( ref_loader_package );
    }
    @Override
    public void setIndex( int ref_index ) throws XtumlException {
        for ( StringLoader stringloader : this ) stringloader.setIndex( ref_index );
    }


    // selections
    @Override
    public AttributeLoaderSet R3008_is_a_AttributeLoader() throws XtumlException {
        AttributeLoaderSet attributeloaderset = new AttributeLoaderSetImpl();
        for ( StringLoader stringloader : this ) attributeloaderset.add( stringloader.R3008_is_a_AttributeLoader() );
        return attributeloaderset;
    }


    @Override
    public StringLoader nullElement() {
        return StringLoaderImpl.EMPTY_STRINGLOADER;
    }

    @Override
    public StringLoaderSet emptySet() {
      return new StringLoaderSetImpl();
    }

    @Override
    public StringLoaderSet emptySet(Comparator comp) {
      return new StringLoaderSetImpl(comp);
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy