if ( dataSet == null ) { return new String[0]; } DataSetItemModel[] models = DataSetManager.getCurrentInstance( ) .getColumns( dataSet, true ); if ( models == null ) { return new String[0]; } ArrayList valueList = new ArrayList( models.length ); for ( int i = 0; i < models.length; i++ ) { if ( !needFilte || matchDataType( models[i] ) ) { valueList.add( models[i].getName( ) ); } } return (String[]) valueList.toArray( new String[0] );
return getDataSetColumns( null );
	private String[] getDataSetColumns( boolean needFilte )	{		if ( dataSet == null )		{			return new String[0];		}		DataSetItemModel[] models = DataSetManager.getCurrentInstance( )				.getColumns( dataSet, true );		if ( models == null )		{			return new String[0];		}		ArrayList valueList = new ArrayList( models.length );		for ( int i = 0; i < models.length; i++ )		{			if ( !needFilte || matchDataType( models[i] ) )			{				valueList.add( models[i].getName( ) );			}		}		return (String[]) valueList.toArray( new String[0] );	}