src/main/java/org/thegalactic/context/constraint/categorical/CategoricalAttribute.java
public CategoricalValue addValue(final Object data) {
        if (this.model.isInstantiated()) {
            throw new IllegalStateException("The underlying model has already been instantiated");
        } else {
            final CategoricalValue value = CategoricalValue.create(data, this);
            this.values.add(value);
            return value;
        }
    }
/**
     * Add a value to a CategoricalAttribute.
     *
     * @param data the underlying data
     *
     * @return the categorical value
     */
Add a value to a CategoricalAttribute.
@param data the underlying data

@return the categorical value
Add a value to a CategoricalAttribute . @param data the underlying data @return the categorical value
public CategoricalValue addValue(final Object data) {
        if (this.model.isInstantiated()) {
            throw new IllegalStateException("The underlying model has already been instantiated");
        } else {
            final CategoricalValue value = CategoricalValue.create(data, this);
            this.values.add(value);
            return value;
        }
    }
public CategoricalValue addValue ( final Object data ) { if ( this . model . isInstantiated ( ) ) { throw new IllegalStateException ( "The underlying model has already been instantiated" ) ; } else { final CategoricalValue value = CategoricalValue . create ( data , this ) ; this . values . add ( value ) ; return value ; } }
Add a value to a CategoricalAttribute.
Add a value to a CategoricalAttribute .