class DataQueryParams {

    protected DataQueryParams setDimensionOptions( String dimension, DimensionType type, String dimensionName, List<DimensionalItemObject> options )
    {
        int index = dimensions.indexOf( new BaseDimensionalObject( dimension ) );

        if ( index != -1 )
        {
            dimensions.set( index, new BaseDimensionalObject( dimension, type, dimensionName, null, options ) );
        }
        else
        {
            dimensions.add( new BaseDimensionalObject( dimension, type, dimensionName, null, options ) );
        }

        return this;
    }

    protected  DataQueryParams();

}