blob: e4ca1d7698c7647044d7447e450c7e8ab7838ad9 [file] [log] [blame]
/*
* Created on Jan 5, 2004
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
import java.util.Iterator;
import java.util.List;
import org.eclipse.jst.j2ee.application.operations.EnterpriseApplicationImportDataModel;
import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile;
import org.eclipse.wst.common.frameworks.operations.WTPOperationDataModel;
import org.eclipse.wst.common.tests.ProjectUtility;
/**
* @author Administrator
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class EARImportDataModelVerifier extends J2EEImportDataModelVerifier {
public void verify(WTPOperationDataModel model) throws Exception {
super.verify(model);
EnterpriseApplicationImportDataModel importModel = (EnterpriseApplicationImportDataModel)model;
List list = importModel.getEARFile().getModuleFiles();
for (Iterator iter = list.iterator(); iter.hasNext();) {
ModuleFile element = (ModuleFile) iter.next();
String uri = element.getURI();
ProjectUtility.verifyProject(uri.substring(0, uri.indexOf(".")), true);
}
}
}