Code Search for Developers
 
 
  

ProjectList.java from BIRT at Krugle


Show ProjectList.java syntax highlighted

/*
 *************************************************************************
 * Copyright (c) 2004, 2005 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.build;

import java.util.ArrayList;

import org.apache.tools.ant.types.DataType;

/**
 * Represent a project list
 *
 */
public class ProjectList extends DataType implements Cloneable
{
    protected ArrayList list = new ArrayList();
    
 
    /**
     * add a project
     * @param pro
     */
    public void addProjectInfo(ProjectInfo pro)
    {
        list.add(pro);
    }
    
    /**
     * get project by index
     * @param index
     * @return
     */
    public ProjectInfo getProject(int index)
    {
        assert(index>=0 && index<list.size());
        return (ProjectInfo)list.get(index);
    }
    
    
    /**
     * get count
     * @return
     */
    public int getCount()
    {
        return list.size();
    }
    

    
}




See more files for this project here

BIRT

BIRT is an open source, Eclipse-based reporting system that integrates with your application to produce compelling reports for both web and PDF.

Project homepage: http://www.eclipse.org/birt/phoenix/
Programming language(s): Java,XML
License: gpl2

  BuildUtil.java
  CheckDiskSpace.java
  DynamicProperty.java
  FeatureUpdater.java
  ForEach.java
  GenCaseResult.java
  MyTStamp.java
  PluginWrapper.java
  PrefixFileFilter.java
  ProjectInfo.java
  ProjectList.java
  ReliableTask.java
  StringUtil.java
  VersionUpdater.java
  config.properties