/********************************************************************** * Copyright (c) 2007, 2011 IBM Corporation and others. * 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: * Igor Fedorenko & Fabrizio Giustina - Initial API and implementation **********************************************************************/ package com.liferay.ide.server.remote; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; /** * Visitor interface to process module components */ public interface IModuleVisitor { /** * Process web component * @param component web component to process * @throws CoreException */ void visitWebComponent(IVirtualComponent component) throws CoreException; /** * Post process web component * @param component web component to process * @throws CoreException */ void endVisitWebComponent(IVirtualComponent component) throws CoreException; /** * Process archive component. * @param runtimePath path for component at runtime * @param workspacePath path to component in workspace */ void visitArchiveComponent(IPath runtimePath, IPath workspacePath); /** * Process Dependent Java project. Useful for determining * source paths. * @param IJavaProject dependent Java project */ void visitDependentJavaProject(IJavaProject javaProject); /** * Process dependent component. * @param runtimePath path for component at runtime * @param workspacePath path to component in workspace */ void visitDependentComponent(IPath runtimePath, IPath workspacePath); /** * Process web resource. * @param runtimePath path for resource at runtime * @param workspacePath path to resource in workspace */ void visitWebResource(IPath runtimePath, IPath workspacePath); /** * Process a content resource from dependent component. * @param runtimePath path for resource at runtime * @param workspacePath path to resource in workspace */ void visitDependentContentResource(IPath runtimePath, IPath workspacePath); /** * Process EAR resource. * @param runtimePath path for resource at runtime * @param workspacePath path to resource in workspace */ void visitEarResource(IPath runtimePath, IPath workspacePath); /** * Post process EAR resource. * @param component EAR component to process * @throws CoreException */ void endVisitEarComponent(IVirtualComponent component) throws CoreException; }