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

io.ciera.tool.sql.ooaofooa.value.impl.LiteralBooleanSetImpl Maven / Gradle / Ivy

package io.ciera.tool.sql.ooaofooa.value.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.value.LiteralBoolean;
import io.ciera.tool.sql.ooaofooa.value.LiteralBooleanSet;
import io.ciera.tool.sql.ooaofooa.value.ValueSet;
import io.ciera.tool.sql.ooaofooa.value.impl.ValueSetImpl;

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


public class LiteralBooleanSetImpl extends InstanceSet implements LiteralBooleanSet {

    public LiteralBooleanSetImpl() {
    }

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

    // attributes
    @Override
    public void setValue_ID( UniqueId ref_Value_ID ) throws XtumlException {
        for ( LiteralBoolean literalboolean : this ) literalboolean.setValue_ID( ref_Value_ID );
    }
    @Override
    public void setValue( String m_Value ) throws XtumlException {
        for ( LiteralBoolean literalboolean : this ) literalboolean.setValue( m_Value );
    }


    // selections
    @Override
    public ValueSet R801_is_a_Value() throws XtumlException {
        ValueSet valueset = new ValueSetImpl();
        for ( LiteralBoolean literalboolean : this ) valueset.add( literalboolean.R801_is_a_Value() );
        return valueset;
    }


    @Override
    public LiteralBoolean nullElement() {
        return LiteralBooleanImpl.EMPTY_LITERALBOOLEAN;
    }

    @Override
    public LiteralBooleanSet emptySet() {
      return new LiteralBooleanSetImpl();
    }

    @Override
    public LiteralBooleanSet emptySet(Comparator comp) {
      return new LiteralBooleanSetImpl(comp);
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy