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

org.xmlvm.proc.BundlePhase2 Maven / Gradle / Ivy

There is a newer version: 0.96-beta4
Show newest version
/* Copyright (c) 2002-2011 by XMLVM.org
 *
 * Project Info:  http://www.xmlvm.org
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA.
 */

package org.xmlvm.proc;

import java.util.Collection;
import java.util.Map;

import org.xmlvm.proc.out.OutputFile;

/**
 * The interface of {@link CompilationBundle} that is used during the second
 * phase.
 */
public interface BundlePhase2
{

	/**
	 * This adds a new resource to the bundle.
	 * 

* IMPORTANT: Only use this in cases where the resource does not need * to be part of the global view as only processes coming after this one * will be able to see the newly added resource. If the resource needs to be * part of the global view, you need to add it in the first phase. */ public void addAdditionalResource(XmlvmResource resource); /** * Returns all {@link XmlvmResource}s that have been added to the bundle so * far. */ public Collection getResources(); /** * Returns a read-only map of the resources, where the key is the resource's * full name. */ public Map getResourceMap(); /** * Adds a new {@link OutputFile} to this bundle. */ public void addOutputFile(OutputFile file); /** * Adds a bunch of {@link OutputFile}s to this bundle. */ public void addOutputFiles(Collection files); /** * Returns all {@link OutputFile}s that have been added to the bundle so * far. */ public Collection getOutputFiles(); /** * Removes the given {@link OutputFile} from this bundle. */ public void removeOutputFile(OutputFile file); /** * Removes all {@link OutputFile}s from this bundle. */ public void removeAllOutputFiles(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy