
/*******************************************************************************
 * Copyright (c) 2004, 2007 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.data.engine.olap.util.filter;

/**
 * 
 */

public class InvalidCubePosFilter extends CubePosFilter
{
	/**
	 * 
	 * @param dimensionNames
	 */
	public InvalidCubePosFilter( String[] dimensionNames )
	{
		super( dimensionNames );
	}

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.birt.data.engine.olap.util.filter.CubePosFilter#getFilterResult(int[])
	 */
	public boolean getFilterResult( int[] dimPositions )
	{
		for ( int i = 0; i < cubePosRangeFilter.size( ); i++ )
		{
			if ( ( (CubePositionRangeFilter) cubePosRangeFilter.get( i ) ).match( dimPositions ) )
			{
				return false;
			}
		}
		return true;
	}

}
