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

org.eclipse.birt.report.model.adapter.oda.impl.AmbiguousResultSetNode Maven / Gradle / Ivy

There is a newer version: 4.6.0-20160607
Show newest version
/*******************************************************************************
 * Copyright (c) 2004 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.report.model.adapter.oda.impl;

import java.util.Collections;
import java.util.List;

import org.eclipse.birt.report.model.adapter.oda.IAmbiguousAttribute;
import org.eclipse.birt.report.model.adapter.oda.IAmbiguousResultSetNode;
import org.eclipse.birt.report.model.api.OdaResultSetColumnHandle;

/**
 * Implements the interface {@link IAmbiguousResultSetNode}. It defines the oda
 * result set column handle and a list of IAmbiguousAttribute.
 * 
 */
class AmbiguousResultSetNode implements IAmbiguousResultSetNode
{

	private final OdaResultSetColumnHandle columnHandle;
	private final List attributes;

	AmbiguousResultSetNode( OdaResultSetColumnHandle columnHandle,
			List attributes )
	{
		if ( columnHandle == null )
			throw new IllegalArgumentException(
					"The oda data set parameter can not be null when creating AmbiguousParameterNode!" ); //$NON-NLS-1$
		this.columnHandle = columnHandle;
		if ( attributes == null )
			this.attributes = Collections.emptyList( );
		else
			this.attributes = attributes;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @seeorg.eclipse.birt.report.model.adapter.oda.IAmbiguousResultSetNode#
	 * getOdaResultSetColumnHandle()
	 */
	public OdaResultSetColumnHandle getOdaResultSetColumnHandle( )
	{
		return this.columnHandle;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @seeorg.eclipse.birt.report.model.adapter.oda.IAmbiguousResultSetNode#
	 * getAmbiguousAttributes()
	 */
	public List getAmbiguousAttributes( )
	{
		return this.attributes;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy