org.eclipse.birt.report.model.adapter.oda.impl.AmbiguousResultSetNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.birt.runtime Show documentation
Show all versions of org.eclipse.birt.runtime Show documentation
A component of the BIRT runtime
/*******************************************************************************
* 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;
}
}